Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-27 12:16:10 +01:00
forgejo/services/repository/files
Lunny Xiao 95e682f104
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">

(cherry picked from commit e308d25f1b2fe24b4735432b05e5e221879a2705)
2024-03-11 23:36:58 +07:00
..
cherry_pick.go Fix reverting a merge commit failing (#28794) 2024-01-16 15:06:51 +00:00
commit.go Cache repository default branch commit status to reduce query on commit status table (#29444) 2024-03-11 23:36:58 +07:00
content.go Extract linguist code to method (#29168) 2024-02-16 15:20:52 +01:00
content_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
diff.go Fix reverting a merge commit failing (#28794) 2024-01-16 15:06:51 +00:00
diff_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
file.go [GITEA] Allow user to select email for file operations in Web UI 2024-02-05 16:09:41 +01:00
file_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
patch.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
search.go [PORT] Fix wrong line number in code search result (gitea#29260) (#2619) 2024-03-10 15:35:30 +00:00
search_test.go [PORT] Fix wrong line number in code search result (gitea#29260) (#2619) 2024-03-10 15:35:30 +00:00
temp_repo.go Fix reverting a merge commit failing (#28794) 2024-01-16 15:06:51 +00:00
tree.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-26 22:30:26 +01:00
tree_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
update.go Fix content size does not match error when uploading lfs file (#29259) 2024-02-26 21:42:14 +01:00
upload.go [BUG] Implement commit mail selection for other Git operations 2024-02-27 22:41:58 +00:00