level-batch-stream
A simple Writable
stream that executes a batch operation on a given levelDB
instance. Perfect to use in conjunction with batch-stream
to
batch up your array size for you and concurrent-writable
for
tweaking the batch execution concurrency level.
var level = ;var through = ;var LevelBatch = ;var BatchStream = ;var parallel = ; var db = ; source // // Turn source data into what levelup expects in batches // // // Will batch up 100 objects an send an array down the chain // // // Will batch the arrays it receives into the level instance // doing up to a max of 10 concurrently //