mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Don't try to process events we already have a label for
This commit is contained in:
parent
07cb38e965
commit
911b03ca31
@ -518,7 +518,8 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
|
|||||||
txn.execute(
|
txn.execute(
|
||||||
"""
|
"""
|
||||||
SELECT event_id, json FROM event_json
|
SELECT event_id, json FROM event_json
|
||||||
WHERE event_id > ?
|
LEFT JOIN event_labels USING (event_id)
|
||||||
|
WHERE event_id > ? AND label IS NULL
|
||||||
LIMIT ?
|
LIMIT ?
|
||||||
""",
|
""",
|
||||||
(last_event_id, batch_size)
|
(last_event_id, batch_size)
|
||||||
|
Loading…
Reference in New Issue
Block a user