]> source.dussan.org Git - gitea.git/commit
Fix package list performance (#30520)
authorKN4CK3R <admin@oldschoolhack.me>
Sat, 20 Apr 2024 11:07:00 +0000 (13:07 +0200)
committerGitHub <noreply@github.com>
Sat, 20 Apr 2024 11:07:00 +0000 (13:07 +0200)
commitb06aac40e6552b0ce1f7b8a92c977fcc27566f68
treed1c9c5aad1672e8efef3d17f2a4d7194befcb1f3
parent48d4580dd5e975de2e8207bb9b9a2f258711d38c
Fix package list performance (#30520)

Fixes #28255

The new query uses the id field to sort by "newer". This most not be
correct (usually it is) but it's faster (see #28255).
If someone has a better idea, please propose changes.

Co-authored-by: Giteabot <teabot@gitea.io>
models/packages/package_version.go