1
0

Add suspicion

This commit is contained in:
Eric Eastwood
2022-11-18 20:57:15 -06:00
parent ede07cac66
commit 8340906573

View File

@@ -101,9 +101,11 @@ class StateGroupBackgroundUpdateStore(SQLBaseStore):
where_clause = " AND (%s)" % (where_clause,)
if isinstance(self.database_engine, PostgresEngine):
# Suspicion start
# Temporarily disable sequential scans in this transaction. This is
# a temporary hack until we can add the right indices in
txn.execute("SET LOCAL enable_seqscan=off")
# Suspicion end
# The below query walks the state_group tree so that the "state"
# table includes all state_groups in the tree. It then joins