From 0f8a44bcc63a2ddbeeb4a925743de8fb753047ab Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Sat, 13 Apr 2024 15:12:23 -0400 Subject: [PATCH] importer: logs: Don't defer constraints No constraints are currently deferrable, so this does nothing. Skip it to continue with the current behavior. Signed-off-by: Sean Anderson --- trends/importer/logs.py | 1 - 1 file changed, 1 deletion(-) diff --git a/trends/importer/logs.py b/trends/importer/logs.py index aec3707..9743467 100644 --- a/trends/importer/logs.py +++ b/trends/importer/logs.py @@ -798,7 +798,6 @@ def import_logs(c, fetcher, update_only): def commit(): with sentry_sdk.start_span(op='db.transaction', description="commit"): cur.execute("BEGIN;") - cur.execute("SET CONSTRAINTS ALL DEFERRED;"); delete_dup_logs(c) delete_bogus_logs(cur) delete_logs(cur)