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 Dec 4, 2023
1 parent 527a46d commit 8216175
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 @@ -360,6 +360,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 8216175

Please sign in to comment.