Order orphans by path
All checks were successful
Alpine 3.20 Success
Debian Bookworm Success

It costs more cycles, but the SHA-1 they got implicitly ordered by
is pseudo-random.
This commit is contained in:
Přemysl Eric Janouch 2024-12-29 14:46:31 +01:00
parent 0530c5d95f
commit b73e0b4622
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -687,7 +687,8 @@ func getOrphans() (result []webOrphan, err error) {
FROM orphan AS o
JOIN image AS i ON o.sha1 = i.sha1
LEFT JOIN tag_assignment AS ta ON o.sha1 = ta.sha1
GROUP BY o.sha1`)
GROUP BY o.sha1
ORDER BY path`)
if err != nil {
return nil, err
}