Expand description
Write Buffer Module
Provides buffered write operations for improved performance.
§Architecture
┌─────────────────────────────────────────────────────────────┐
│ Write Buffer │
├─────────────────────────────────────────────────────────────┤
│ Operations: │
│ 1. Write to WAL (durability) │
│ 2. Buffer in memory │
│ 3. Flush when: capacity/time/explicit │
└─────────────────────────────────────────────────────────────┘
│
▼ flush
┌─────────────────────────────────────────────────────────────┐
│ RecordStore + Index │
└─────────────────────────────────────────────────────────────┘§Thread Safety
The buffer is thread-safe and can be shared across threads.
Structs§
- Buffer
Stats - Buffer statistics.
- Write
Buffer - Write buffer for batched operations.
- Write
Buffer Config - Write buffer configuration.