Use this skill when implementing or modifying MVCC logic, including version metadata, visibility filtering, and cleanup.
Implementation guidance: 1) Locate the existing MVCC abstractions (e.g., version metadata types, visibility filters) before adding new logic. 2) Ensure reads filter out uncommitted or aborted versions and respect snapshot boundaries.
3) When inserting updates, create new version entries rather than in-place mutation. 4) For deletes, add tombstones and make them visible using the same MVCC rules. 5) Compaction/cleanup must only remove versions that are not visible to any active snapshot.
MVCC in KalamDB: record con versione, regole di visibilità, letture di snapshot, compattazione e cicli di vita delle transazioni. Parole chiave: mvcc, snapshot, visibilità, commit, interruzione, lapide, vuoto. Fonte: jamals86/kalamdb.