-
-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve the performance of our instance stats (#8766)
## About the changes Our stats are used for many places and many times to publish prometheus metrics and some other things. Some of these queries are heavy, traversing all tables to calculate aggregates. This adds a feature flag to be able to memoize 1 minute (by default) how long to keep the calculated values in memory. We can use the key of the function to individually control which ones are memoized or not and for how long using a numeric variant. Initially, this will be disabled and we'll test in our instances first
- Loading branch information
1 parent
0ce976a
commit 39d227c
Showing
4 changed files
with
266 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.