mirror of
https://github.com/element-hq/synapse
synced 2024-10-02 22:02:41 +00:00
Go faster stripes
This commit is contained in:
parent
2d4cea496b
commit
b58ed63884
1 changed files with 4 additions and 0 deletions
|
@ -355,6 +355,10 @@ class EventFederationWorkerStore(SignatureWorkerStore, EventsWorkerStore, SQLBas
|
|||
# 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
|
||||
|
|
Loading…
Reference in a new issue