Cache the result of the indexes stats #3540
Labels
enhancement
New feature or improvement
performance
Related to the performance in term of search/indexation speed or RAM/CPU/Disk consumption
v1.1.0
PRs/issues solved in v1.1.0 released on 2023-04-03
Milestone
Since #3331 has been merged, we now have the possibility to store thousands of indexes in meilisearch.
But at the same time, opening indexes became slower.
That can be a real issue when calling the global
stats
.And it will also degrade the usage of the new experimental
/metrics
route.After chatting with @dureuill we decided it would be better to cache the result of the stats on disk to avoid opening the indexing just to extract a few information out of the index.
The text was updated successfully, but these errors were encountered: