mirror of
https://github.com/element-hq/synapse.git
synced 2026-09-17 01:34:28 +00:00
Handle SQLite
This commit is contained in:
@@ -406,8 +406,11 @@ class EventFederationWorkerStore(SignatureWorkerStore, EventsWorkerStore, SQLBas
|
||||
# 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")
|
||||
if isinstance(txn.database_engine, PostgresEngine):
|
||||
# JIT and sequential scans sometimes get hit on this code path, which
|
||||
# can make the queries much more expensive
|
||||
txn.execute("SET LOCAL jit = off")
|
||||
txn.execute("SET LOCAL enable_seqscan = off")
|
||||
|
||||
sql = """
|
||||
WITH RECURSIVE links(chain_id) AS (
|
||||
|
||||
Reference in New Issue
Block a user