Hacker News new | ask | show | jobs
by polishdude20 1156 days ago
How does flushing in a background process work if it says that it's an embeddable database that's in your application? It says there is no external process so how is there a background process that performs compaction and flushing?
1 comments

It's a thread: https://artem.krylysov.com/blog/2023/04/19/how-rocksdb-works...

> RocksDB runs a dedicated background thread that persists immutable memtables to disk.

They are using "process" to mean "mechanism", something that happens, not a literal OS process. I agree that it's a bit confusing to use the word both ways.

I rephrased some sentences to avoid confusion. Thanks for the feedback!
To be perfectly exact, it is even a thread pool and it is tunable.