Module buffer

Module buffer 

Source
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§

BufferStats
Buffer statistics.
WriteBuffer
Write buffer for batched operations.
WriteBufferConfig
Write buffer configuration.