gitea/modules/repository
Giteabot 1162cbccc0
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
Performance optimization for tags synchronization (#34355) (#34522)
Backport #34355 by @lunny

The tags synchronization is very slow for a non-mirror repository with
many tags especially forking. This PR make all repositories' tags
synchronization use the same function and remove the low performance
synchronization function. The commit count of tag now will not be stored
into database when syncing. Since the commits count will always be read
from cache or git data, the `NumCommits` in the release table will be
updated for the first read from git data.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-05-22 19:28:25 -07:00
..
branch_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
branch.go Trivial fixes (#33304) 2025-01-17 08:55:02 +00:00
commits_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
commits.go Cache GPG keys, emails and users when list commits (#34086) 2025-04-09 16:34:38 +00:00
create_test.go Move and rename UpdateRepository (#34136) 2025-04-12 18:22:18 +00:00
create.go Move and rename UpdateRepository (#34136) 2025-04-12 18:22:18 +00:00
delete.go
env.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
fork_test.go Allow to fork repository into the same owner (#32819) 2024-12-14 09:39:05 +08:00
fork.go Fix various trivial problems (#32861) 2024-12-17 01:15:18 +00:00
init_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
init.go feat: Add sorting by exclusive labels (issue priority) (#33206) 2025-04-10 17:18:07 +00:00
license_test.go Fix repo avatar conflict (#32958) 2024-12-23 02:52:25 +00:00
license.go
main_test.go
push.go
repo_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
repo.go Performance optimization for tags synchronization (#34355) (#34522) 2025-05-22 19:28:25 -07:00
temp.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00