wickdb icon indicating copy to clipboard operation
wickdb copied to clipboard

Introduce unencoded WriteBatch

Open Fullstop000 opened this issue 3 years ago • 0 comments

Currently, the WriteBatch follows the original implementation of leveldb, which is a Vec<u8> with encoded entries. When we call put, the entry will be encoded into variant length based encoded bytes, fill the bytes into a WriteBatch and then be inserted into MemTable, However, when inserting the batch into MemTable, it needs to be decoded into entires first.

For a more efficient inserting style, we might just let WriteBatch hold unencoded entries, and deliver them to the MemTable without any serde.

Fullstop000 avatar Nov 27 '20 04:11 Fullstop000