sort batches of writes to reduce fragmentation

This commit is contained in:
Doug Hoyte
2023-01-11 23:36:39 -05:00
parent 428f51528b
commit 8102cd6a00
5 changed files with 18 additions and 12 deletions

View File

@ -70,7 +70,7 @@ struct WriterPipeline {
// Collect a certain amount of records in a batch, push the rest back into the inbox
// Pre-filter out dups in a read-only txn as an optimisation
std::deque<EventToWrite> newEventsToProc;
std::vector<EventToWrite> newEventsToProc;
{
auto txn = env.txn_ro();