Skip to content

Commit

Permalink
Go faster stripes
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed May 13, 2024
1 parent ca79b4d commit 46a0c20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synapse/storage/databases/main/event_federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ def _get_chain_links(
# structuring the recursive part of query to pull out the links without
# also returning large quantities of redundant data (which can make it a
# lot slower).

txn.execute("SET LOCAL jit = off")
txn.execute("SET LOCAL enable_seqscan = off")

sql = """
WITH RECURSIVE links(chain_id) AS (
SELECT
Expand Down

0 comments on commit 46a0c20

Please sign in to comment.