fixed icon downloading performance issues
This commit is contained in:
parent
2745e75408
commit
cf17fc42b1
2 changed files with 3 additions and 11 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue