Skip to content

Commit

Permalink
importer: logs: Don't defer constraints
Browse files Browse the repository at this point in the history
No constraints are currently deferrable, so this does nothing. Skip it to
continue with the current behavior.

Signed-off-by: Sean Anderson <[email protected]>
  • Loading branch information
Forty-Bot committed Apr 13, 2024
1 parent 4ab9007 commit 0f8a44b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion trends/importer/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0f8a44b

Please sign in to comment.