Skip to content

Fix: When deleting expired snapshots in janitor only fetch relevant snapshot records#2030

Merged
izeigerman merged 2 commits intomainfrom
fix-only-fetch-expired-snapshots-in-janitor
Jan 26, 2024
Merged

Fix: When deleting expired snapshots in janitor only fetch relevant snapshot records#2030
izeigerman merged 2 commits intomainfrom
fix-only-fetch-expired-snapshots-in-janitor

Conversation

@izeigerman
Copy link
Contributor

Previously, the janitor process would fetch all snapshot records to figure out what needs to be cleaned up. This led to a large memory footprint for projects with many models and / or changes.

This update ensures that only records that actually expired are fetched from the state DB.

@izeigerman izeigerman requested a review from a team January 26, 2024 20:21
@izeigerman izeigerman force-pushed the fix-only-fetch-expired-snapshots-in-janitor branch from bed8dca to 189dcae Compare January 26, 2024 20:24
@izeigerman izeigerman force-pushed the fix-only-fetch-expired-snapshots-in-janitor branch from 189dcae to 0578772 Compare January 26, 2024 20:27
@izeigerman izeigerman force-pushed the fix-only-fetch-expired-snapshots-in-janitor branch from 04067de to 0936d09 Compare January 26, 2024 22:07
@izeigerman izeigerman merged commit d5fd1b2 into main Jan 26, 2024
@izeigerman izeigerman deleted the fix-only-fetch-expired-snapshots-in-janitor branch January 26, 2024 22:42
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