goleveldb icon indicating copy to clipboard operation
goleveldb copied to clipboard

Bulk Load Config?

Open kellrott opened this issue 6 years ago • 1 comments

I'm looking for something similar to RocksDB's PrepareForBulkLoad ( https://github.com/facebook/rocksdb/blob/19ec44fd392beff927cacbd3a976415edb3d27e9/options/options.cc#L367 ) which sets all the options to write without doing much organization or compaction, and then you are expects to call CompactRange yourself afterwards. What would be the best set of values to load into Options to cause that kind of behavior?

kellrott avatar Sep 22 '18 09:09 kellrott

Transaction may be what you looking for. It skips journaling and writes directly into sstable, and those table will not committed (hence no organization or compaction being done on it) until you call Commit.

syndtr avatar Oct 01 '18 15:10 syndtr