diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-03-06 20:17:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 12:17:19 +0000 |
commit | e308d25f1b2fe24b4735432b05e5e221879a2705 (patch) | |
tree | 24abb4223c41fb82254b14a7520e8a2859fe4263 /modules/git/commit_test.go | |
parent | 90a3f2d4b7ed3890d9655c0334444f86d89b7b30 (diff) | |
download | gitea-e308d25f1b2fe24b4735432b05e5e221879a2705.tar.gz gitea-e308d25f1b2fe24b4735432b05e5e221879a2705.zip |
Cache repository default branch commit status to reduce query on commit status table (#29444)
After repository commit status has been introduced on dashaboard, the
most top SQL comes from `GetLatestCommitStatusForPairs`.
This PR adds a cache for the repository's default branch's latest
combined commit status. When a new commit status updated, the cache will
be marked as invalid.
<img width="998" alt="image"
src="https://github.com/go-gitea/gitea/assets/81045/76759de7-3a83-4d54-8571-278f5422aed3">
Diffstat (limited to 'modules/git/commit_test.go')
0 files changed, 0 insertions, 0 deletions