You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Considering a lot of queries are executed in a regular basis (like alerting and recording rules evaluation), it might be unnecessary to analyze the same query everytime. We could introduce a LRU cache to cache the QueryAnalysis result or error.
Describe the solution you'd like
Use github.com/hashicorp/golang-lru as the LRU cache and add it to the QueryAnalyzer. Probably there are better LRU implementations but the idea should be similar.
The text was updated successfully, but these errors were encountered:
Is your proposal related to a problem?
Considering a lot of queries are executed in a regular basis (like alerting and recording rules evaluation), it might be unnecessary to analyze the same query everytime. We could introduce a LRU cache to cache the
QueryAnalysis
result orerror
.Describe the solution you'd like
Use
github.com/hashicorp/golang-lru
as the LRU cache and add it to theQueryAnalyzer
. Probably there are better LRU implementations but the idea should be similar.The text was updated successfully, but these errors were encountered: