Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Remove statement timeout on room purge transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jan 29, 2024
1 parent ab07da0 commit 82cc222
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synapse/storage/databases/main/purge_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ def _purge_room_txn(self, txn: LoggingTransaction, room_id: str) -> List[int]:
(room_id,),
)

# Disable statement timeouts for this transaction; purging rooms can
# take a while!
txn.execute("SET LOCAL statement_timeout = 0")

# First, fetch all the state groups that should be deleted, before
# we delete that information.
txn.execute(
Expand Down

0 comments on commit 82cc222

Please sign in to comment.