You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fresh import of ~210 docs produces a 147MB database (all in RocksDB WAL log files, no SST files). Expected post-compaction size would be ~10-15MB. At this rate, 2K docs would hit ~1.4GB before compaction.
RocksDB WAL files are not being flushed/compacted aggressively enough for a desktop app where disk visibility matters.
Current State
112M 000004.log (content + relationships WAL)
35M 000008.log (additional WAL)
0 SST files (no compaction has occurred)
Expected
After compaction:
210 docs: ~10-15MB
2K docs: ~80-150MB
Embeddings (768-dim × N docs): ~1-2MB per 210 docs
Possible Fixes
Force flush after bulk import — call db.flush() or equivalent after import completes
Activity
malibio commentedon Mar 22, 2026
Baseline: Frontend 119 test files, 3748 tests all passing. Starting implementation.
fix: tune RocksDB compaction for desktop — cap WAL size, shrink buffe…
docs: note SurrealDB lacks explicit close/flush for RocksDB (#992)
fix: address review — remove phantom env var, safer merge threshold (#…
fix: disable blob files and flatten compaction levels for smaller DB (#…
Tune RocksDB compaction for desktop app — WAL bloat causes 10x oversi…
Tune RocksDB compaction for desktop app — WAL bloat causes 10x oversi…