Re:MultiLevel: Expose a levelDB over the network to be used ...
by majke on Monday July 22, 2013 @06:36AM
(#6082905)
Standard question: what about conflict resolution, locking, deadlocks, snapshots, transactions?
> The exposed DB has the exact same API as levelUp...
Is createKeyStream creating a snapshot internally? Is createWriteStream locking? levelup seems to support nodejs streams, does the API support flow control?
> The exposed DB has the exact same API as levelUp...
Is createKeyStream creating a snapshot internally? Is createWriteStream locking? levelup seems to support nodejs streams, does the API support flow control?
- snapshots are create implicitly when using a reading stream. there isn't yet an api that exposes them directly.
- if you need transactions, write a node module that implements them
- create{Key,Value,Read}Stream uses snapshots internally
- createWriteStream is aggregating some of its values into batches for performance reasons, but not locking
- levelup/multilevel streams behave the way node.js streams should behave