Skip to content

Commit

Permalink
chore: use lightweight deletes for squash job cleanup in overrides ta…
Browse files Browse the repository at this point in the history
…ble (#28226)
  • Loading branch information
fuziontech authored Feb 3, 2025
1 parent 994df62 commit e1a2e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dags/person_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def overrides_delete_mutation_runner(self) -> MutationRunner:
return MutationRunner(
PERSON_DISTINCT_ID_OVERRIDES_TABLE,
f"""
DELETE WHERE
DELETE FROM {PERSON_DISTINCT_ID_OVERRIDES_TABLE} WHERE
isNotNull(dictGetOrNull(%(name)s, 'version', (team_id, distinct_id)) as snapshot_version)
AND snapshot_version >= version
""",
Expand Down

0 comments on commit e1a2e80

Please sign in to comment.