khonsulabs / nebari

A pure Rust database implementation using an append-only B-Tree file format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement transaction log compaction

ecton opened this issue · comments

We will want to be able to discard old entries in the transaction log. The safe way to do this will be to keep track of the last transactions that were committed for each tree, but that requires knowing all the trees that the transaction file contains -- something not currently tracked. The only way to gather the information would be to do a full scan of the existing transaction log.