brewhops / api

API for the brewhops fermentation tracking system
https://brewhops-api.now.sh
0 stars 0 forks source link

create stored procedure to query and shape graph data #8

Open danvanhorn opened 5 years ago

danvanhorn commented 5 years ago

Creating the graphs is the slowest part of the app. This is due to the immense overhead that the client takes on by formatting all of that data in a way that it expects. We need to do this with a sql stored procedure or db function, and move what minimal logic that we may need afterwards to the back-end to reduce load times