mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-15 04:29:15 -04:00
Replace noop background updates with DELETE. (#12954)
Removes the `register_noop_background_update` and deletes the background updates directly in a delta file.
This commit is contained in:
parent
f68b5e5773
commit
53b77b203a
14 changed files with 62 additions and 146 deletions
|
@ -1240,15 +1240,6 @@ class DeviceBackgroundUpdateStore(SQLBaseStore):
|
|||
self._remove_duplicate_outbound_pokes,
|
||||
)
|
||||
|
||||
# a pair of background updates that were added during the 1.14 release cycle,
|
||||
# but replaced with 58/06dlols_unique_idx.py
|
||||
self.db_pool.updates.register_noop_background_update(
|
||||
"device_lists_outbound_last_success_unique_idx",
|
||||
)
|
||||
self.db_pool.updates.register_noop_background_update(
|
||||
"drop_device_lists_outbound_last_success_non_unique_idx",
|
||||
)
|
||||
|
||||
async def _drop_device_list_streams_non_unique_indexes(
|
||||
self, progress: JsonDict, batch_size: int
|
||||
) -> int:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue