Use NuDB burst size and use NuDB version 2.0.5

This commit is contained in:
Miguel Portilla
2020-11-12 15:17:55 -05:00
committed by manojsdoshi
parent 0b4e34b03b
commit 8707c15b9c
18 changed files with 148 additions and 49 deletions

View File

@@ -115,7 +115,12 @@ Shard::init(Scheduler& scheduler, nudb::context& context)
return false;
}
backend_ = factory->createInstance(
NodeObject::keyBytes, section, scheduler, context, j_);
NodeObject::keyBytes,
section,
megabytes(app_.config().getValueFor(SizedItem::burstSize, boost::none)),
scheduler,
context,
j_);
return open(lock);
}