mirror of
https://github.com/christianselig/apollo-backend
synced 2024-12-26 08:15:27 +00:00
do 2000 accounts at a time
This commit is contained in:
parent
424e27b068
commit
5848d9584d
1 changed files with 1 additions and 2 deletions
|
@ -210,8 +210,7 @@ func enqueueAccounts(ctx context.Context, logger *logrus.Logger, statsd *statsd.
|
|||
last_enqueued_at < $1
|
||||
OR last_checked_at < $2
|
||||
ORDER BY last_checked_at
|
||||
LIMIT 1000
|
||||
FOR UPDATE SKIP LOCKED
|
||||
LIMIT 2000
|
||||
)
|
||||
UPDATE accounts
|
||||
SET last_enqueued_at = $3
|
||||
|
|
Loading…
Reference in a new issue