mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 09:36:43 +00:00
sort batches of writes to reduce fragmentation
This commit is contained in:
@ -35,7 +35,7 @@ void cmd_import(const std::vector<std::string> &subArgs) {
|
||||
|
||||
std::string line;
|
||||
uint64_t processed = 0, added = 0, rejected = 0, dups = 0;
|
||||
std::deque<EventToWrite> newEvents;
|
||||
std::vector<EventToWrite> newEvents;
|
||||
|
||||
auto logStatus = [&]{
|
||||
LI << "Processed " << processed << " lines. " << added << " added, " << rejected << " rejected, " << dups << " dups";
|
||||
|
Reference in New Issue
Block a user