rag_plusplus_core/buffer/mod.rs
1//! Write Buffer Module
2//!
3//! Provides buffered write operations for improved performance.
4//!
5//! # Architecture
6//!
7//! ```text
8//! ┌─────────────────────────────────────────────────────────────┐
9//! │ Write Buffer │
10//! ├─────────────────────────────────────────────────────────────┤
11//! │ Operations: │
12//! │ 1. Write to WAL (durability) │
13//! │ 2. Buffer in memory │
14//! │ 3. Flush when: capacity/time/explicit │
15//! └─────────────────────────────────────────────────────────────┘
16//! │
17//! ▼ flush
18//! ┌─────────────────────────────────────────────────────────────┐
19//! │ RecordStore + Index │
20//! └─────────────────────────────────────────────────────────────┘
21//! ```
22//!
23//! # Thread Safety
24//!
25//! The buffer is thread-safe and can be shared across threads.
26
27mod write_buffer;
28
29pub use write_buffer::{WriteBuffer, WriteBufferConfig, BufferStats};