Skip to content

Conversation

@ezekg
Copy link
Member

@ezekg ezekg commented Nov 6, 2025

Improves pruning query performance by iterating the backlog oldest-first. Previously, pruning would very often "stall" on larger accounts, effectively orphaning older logs due to the exec timeout. This change reworks backlog iteration to process one day at a time, starting from the oldest, ensuring that older logs are eventually pruned even with newer logs pouring in from the large accounts. In addition to resolving the "stall," it should also improve batch query performance.

@ezekg ezekg marked this pull request as ready for review November 6, 2025 22:43
@ezekg ezekg merged commit 3521ce6 into master Nov 7, 2025
5 checks passed
@sentry
Copy link

sentry bot commented Nov 8, 2025

Issues attributed to commits in this pull request

This pull request was merged and Sentry observed the following issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants