osmlab / to-fix-backend

The to-fix server
BSD 3-Clause "New" or "Revised" License
15 stars 13 forks source link

Query optimizations #169

Closed batpad closed 6 years ago

batpad commented 6 years ago

We should make sure that the queries generated by Sequelize are as efficient as possible, and hit indexes for any filters:

For all end-points that fetch things or do filters, we should:

cc @emilymdubois

batpad commented 6 years ago

Documentation to perform eager loading in Sequelize: http://docs.sequelizejs.com/manual/tutorial/models-usage.html#eager-loading

batpad commented 6 years ago

I think we've done a good job on prefetching and ensuring indexes. This can probably do with another round of inspection later, but nothing immediately actionable. Closing.