Speed up background jobs populate_full_user_id_user_filters and populate_full_user_id_profiles (#15700)

pull/15703/head
Shay 2023-05-31 15:13:48 -07:00 committed by GitHub
parent 11e15d79b8
commit 6d9e2fd878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

1
changelog.d/15700.misc Normal file
View File

@ -0,0 +1 @@
Speed up background jobs `populate_full_user_id_user_filters` and `populate_full_user_id_profiles`.

View File

@ -71,7 +71,7 @@ class FilteringWorkerStore(SQLBaseStore):
SELECT user_id FROM user_filters
WHERE user_id > ?
ORDER BY user_id
LIMIT 1 OFFSET 50
LIMIT 1 OFFSET 1000
"""
txn.execute(sql, (lower_bound_id,))
res = txn.fetchone()

View File

@ -65,7 +65,7 @@ class ProfileWorkerStore(SQLBaseStore):
SELECT user_id FROM profiles
WHERE user_id > ?
ORDER BY user_id
LIMIT 1 OFFSET 50
LIMIT 1 OFFSET 1000
"""
txn.execute(sql, (lower_bound_id,))
res = txn.fetchone()