HandyPantry / handy-pantry

MIT License
0 stars 1 forks source link

Add appropriate indexing to the DB #23

Open NicMcPhee opened 2 years ago

NicMcPhee commented 2 years ago

At the moment we don't have any indexing set up for this. My guess is that we should at a minimum be indexing by productName, category, and store.

We might want a store : location combined index as well?

Might want a range index on the pantry items expiry dates.

I'm not sure how to ensure that the indices are present on both development DBs (including GitHub Actions) and on the production DB. Maybe we need a script for that?