Closed wangjia184 closed 1 year ago
I'm actually thinking about removing the writer thread completely. LMDB is single-writer and enforces that with a lock. In .NET you could just use Task.Run
if you do not want to block the current thread and fire-and-forget a transaction.
What is your use case where this is important?
Background write thread is removed completely.
it is better to replace blocking queue with Channel .
The former blocks a thread when waiting for new data; The latter is totally non-blocking hence you can free up thread when there is no data to write.