Answer the question
In order to leave comments, you need to log in
MySQL database query optimization?
Now the user has the opportunity to make a selection of data for N days (a lot of data is loaded for 1 day). If, for example, 5 people make such a selection at the same time, then the database will hang.
There is an idea to make a selection for 3 months and save it in the cache (data for the past days do not change), and actually update this cache when the user first loads the data, once a day. And then the search by day will be carried out within this cache, if the data selection matches it.
Is it worth doing such manipulations, or is there a better way?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question