mirror of
https://github.com/element-hq/synapse
synced 2024-07-05 12:43:33 +00:00
Go faster stripes
This commit is contained in:
parent
2d4cea496b
commit
b58ed63884
|
@ -355,6 +355,10 @@ class EventFederationWorkerStore(SignatureWorkerStore, EventsWorkerStore, SQLBas
|
||||||
# structuring the recursive part of query to pull out the links without
|
# structuring the recursive part of query to pull out the links without
|
||||||
# also returning large quantities of redundant data (which can make it a
|
# also returning large quantities of redundant data (which can make it a
|
||||||
# lot slower).
|
# lot slower).
|
||||||
|
|
||||||
|
txn.execute("SET LOCAL jit = off")
|
||||||
|
txn.execute("SET LOCAL enable_seqscan = off")
|
||||||
|
|
||||||
sql = """
|
sql = """
|
||||||
WITH RECURSIVE links(chain_id) AS (
|
WITH RECURSIVE links(chain_id) AS (
|
||||||
SELECT
|
SELECT
|
||||||
|
|
Loading…
Reference in a new issue