Closed amityahav closed 1 year ago
I have thought about this before, but I need more time to design how to implement it.
this can also optimize batch inserts in rosedb
Here is my thought:
PendingWrites(data []byte)
pendingWrites [][]byte
WriteAll
pendingWrites
in walChunkPosition
it would be nice to support batch writes. i want to be able to buffer all of my DB modifications that are appended to the WAL during a batch insert and only when the batch insert is completed flush it to the underlying file.