mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Handle SQLite
This commit is contained in:
parent
b8b6fe0da3
commit
90e1df262d
1 changed files with 5 additions and 2 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue