Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

Vacuum + Persistence Integration #149

Description

@Handy-caT

Vacuum operates purely in-memory. If used with persistent tables, after a crash, on-disk state may have old page layouts while persisted operations may reference new locations which leads to data corruption.

Solution

Persist vacuum operations as atomic "VacuumBatch" using existing batch generation logic:

  1. Add VacuumOperation type with old/new links and CDC events
  2. Modify vacuum to generate CDC events
  3. Analyzer collects vacuum batch: all ops per link where last op is Vacuum
  4. Apply batch atomically to disk

Activity

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

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingEnhancementTasks related to code enhancements/refactors

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions