Skip to content

store: reshuffle stale calendar events during maintenance - #266

Open
anish749 wants to merge 1 commit into
mainfrom
fix-calendar-stale-v2
Open

store: reshuffle stale calendar events during maintenance#266
anish749 wants to merge 1 commit into
mainfrom
fix-calendar-stale-v2

Conversation

@anish749

Copy link
Copy Markdown
Owner

Problem

When a calendar event's dates change, the poller writes the updated event to the new date file but the old copy persists. Compaction only deduplicates within a single file, not across files.

Solution

Add a reshuffle pass in Maintain that loads all calendar date files per calendar ID, keeps the latest version of each event (by Updated timestamp), and rewrites files so events appear only in their correct date range.

Supersedes #263.

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.

1 participant