diff options
-rw-r--r-- | changelog.d/15429.misc | 1 | ||||
-rw-r--r-- | synapse/storage/databases/main/event_federation.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/15429.misc b/changelog.d/15429.misc new file mode 100644 index 0000000000..c5b054d19e --- /dev/null +++ b/changelog.d/15429.misc @@ -0,0 +1 @@ +Improve DB performance of clearing out old data from `stream_ordering_to_exterm`. diff --git a/synapse/storage/databases/main/event_federation.py b/synapse/storage/databases/main/event_federation.py index 9e6011e8ea..2ad6fa7d5e 100644 --- a/synapse/storage/databases/main/event_federation.py +++ b/synapse/storage/databases/main/event_federation.py @@ -1708,7 +1708,7 @@ class EventFederationWorkerStore(SignatureWorkerStore, EventsWorkerStore, SQLBas WHERE stream_ordering < ? """ txn.execute( - sql, (self.stream_ordering_month_ago) # type: ignore[attr-defined] + sql, (self.stream_ordering_month_ago,) # type: ignore[attr-defined] ) await self.db_pool.runInteraction( |