0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 06:18:39 +01:00
gitea/routers/api/v1/repo
Lunny Xiao e308d25f1b
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">
2024-03-06 12:17:19 +00:00
..
action.go
avatar.go
blob.go
branch.go
collaborators.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
commits.go
file.go
fork.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
git_hook.go
git_ref.go
hook_test.go
hook.go
issue_attachment.go
issue_comment_attachment.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
issue_comment.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
issue_dependency.go
issue_label.go
issue_pin.go
issue_reaction.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
issue.go Add missing database transaction for new issue (#29490) 2024-03-04 11:24:02 +00:00
key.go
label.go
language.go
main_test.go
migrate.go
milestone.go
mirror.go
notes.go
patch.go
pull_review.go
pull.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
release_attachment.go Add support for API blob upload of release attachments (#29507) 2024-03-02 17:02:01 +00:00
release_tags.go
release.go Fix 500 when pushing release to an empty repo (#29554) 2024-03-03 16:49:05 +00:00
repo_test.go
repo.go Enable/disable owner and repo projects independently (#28805) 2024-03-04 02:56:52 +00:00
runners.go
star.go
status.go Cache repository default branch commit status to reduce query on commit status table (#29444) 2024-03-06 12:17:19 +00:00
subscriber.go
tag.go
teams.go
topic.go
transfer.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
tree.go
wiki.go