Skip to content

Conversation

@JTCunning
Copy link
Contributor

Since EventMapping is now only written to when an Event is sampled, the volume of this table has dropped dramatically.

@JTCunning JTCunning requested a review from a team January 5, 2018 03:01
model=models.EventMapping,
dtfield='date_added',
days=min(days, 7),
days=days,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should just roll this into BULK_QUERY_DELETES now and remove this special block entirely.

# Deletions that use `BulkDeleteQuery` (and don't need to worry about child relations)
# (model, datetime_field, order_by)
BULK_QUERY_DELETES = [
(models.EventMapping, 'date_added', None),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add -date_added instead of None. That's the order_by argument which we need.

Copy link
Contributor

@mattrobenolt mattrobenolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍪

@JTCunning JTCunning merged commit a29d5df into master Jan 9, 2018
@JTCunning JTCunning deleted the eventmapping-dynamic-cleanup branch January 9, 2018 00:14
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants