fixed icon downloading performance issues

This commit is contained in:
Joe Lothan 2026-05-19 10:32:34 -04:00
parent 2745e75408
commit cf17fc42b1
2 changed files with 3 additions and 11 deletions

View file

@ -20,10 +20,6 @@ func claimBatch(ctx context.Context, pool *pgxpool.Pool, limit int) ([]IconRow,
WHERE id IN (
SELECT id FROM icons
WHERE scan_state = 'unscanned'
AND (source = 'favicon_ico'
OR rel_sizes IS NULL
OR rel_sizes IN ('16x16','32x32','48x48','64x64'))
ORDER BY md5(id::text)
LIMIT $1
FOR UPDATE SKIP LOCKED
)