-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache statistics and provide estimation methods #19474
Closed
Closed
Commits on Apr 23, 2022
-
Cache statistics and provide estimation methods
Currently whenever the prometheus metrics endpoint or `/admin` endpoint are viewed the statistics are recalculated immediately - using COUNT rather than a less expensive method. This PR provides a mechanism to cache these statistics, avoids generating all of the metrics on the admin page and provides an estimation method for the plain table counts. Fix go-gitea#17506 Signed-off-by: Andrew Thornton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2892d1c - Browse repository at this point
Copy the full SHA 2892d1cView commit details
Commits on Apr 24, 2022
-
cache results locally instead of using the cache service and
ensure that statistics are only calculated one at a time. Signed-off-by: Andrew Thornton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7b3974f - Browse repository at this point
Copy the full SHA 7b3974fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d487e08 - Browse repository at this point
Copy the full SHA d487e08View commit details
Commits on Apr 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6494a08 - Browse repository at this point
Copy the full SHA 6494a08View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9026aa - Browse repository at this point
Copy the full SHA a9026aaView commit details
Commits on May 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 52cd751 - Browse repository at this point
Copy the full SHA 52cd751View commit details
Commits on May 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2c42857 - Browse repository at this point
Copy the full SHA 2c42857View commit details -
Signed-off-by: Andrew Thornton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f3e881d - Browse repository at this point
Copy the full SHA f3e881dView commit details
Commits on May 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3316ecc - Browse repository at this point
Copy the full SHA 3316eccView commit details
Commits on May 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 89e1a54 - Browse repository at this point
Copy the full SHA 89e1a54View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa64b2c - Browse repository at this point
Copy the full SHA aa64b2cView commit details
Commits on May 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for bc23fad - Browse repository at this point
Copy the full SHA bc23fadView commit details -
reduce the number of estimated counts and clearly mark them
Signed-off-by: Andrew Thornton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for da9579d - Browse repository at this point
Copy the full SHA da9579dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27f8b14 - Browse repository at this point
Copy the full SHA 27f8b14View commit details
Commits on Aug 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1a7c426 - Browse repository at this point
Copy the full SHA 1a7c426View commit details -
add examples to app.example.ini
Signed-off-by: Andrew Thornton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 626d23f - Browse repository at this point
Copy the full SHA 626d23fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 123024f - Browse repository at this point
Copy the full SHA 123024fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.