mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Speed up background jobs populate_full_user_id_user_filters and populate_full_user_id_profiles (#15700)
This commit is contained in:
parent
11e15d79b8
commit
6d9e2fd878
1
changelog.d/15700.misc
Normal file
1
changelog.d/15700.misc
Normal file
@ -0,0 +1 @@
|
||||
Speed up background jobs `populate_full_user_id_user_filters` and `populate_full_user_id_profiles`.
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user