A Write-Ahead Log (WAL) is a persistent, append-only journal where all intended data modifications (inserts, updates, deletes) are recorded as log entries before the changes are applied to the main data structures, such as a vector index. This durability guarantee ensures that no committed transaction is lost, even if the system crashes immediately after acknowledging the write. The log serves as the single source of truth for recovery, allowing the database to replay these entries to reconstruct its state after a restart.




