Skip to content

Commit

Permalink
Force-disable seqscan while I investigate index problems
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed Jan 11, 2025
1 parent bcc75a9 commit 8a540df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions acoustid/scripts/import_submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def do_import(script: Script, limit: int = 100) -> int:
fingerprint_db = ctx.db.get_fingerprint_db()

timeout_ms = 20 * 1000
ingest_db.execute("SET LOCAL enable_seqscan TO off")
ingest_db.execute("SET LOCAL statement_timeout TO {}".format(timeout_ms))
app_db.execute("SET LOCAL statement_timeout TO {}".format(timeout_ms))
fingerprint_db.execute(
Expand Down

0 comments on commit 8a540df

Please sign in to comment.