MaxBatchDelay is the maximum delay before a batch starts. Default value is copied from DefaultMaxBatchDelay in Open.
If <=0, effectively disables batching.
Do not change concurrently with calls to Batch.
db.MaxBatchSize = size // high enough to never trigger here db.MaxBatchDelay = 1 * time.Hour go put(1)
db.MaxBatchSize = 1000 db.MaxBatchDelay = 0 go put(1)
// Set default values for later DB operations. db.MaxBatchSize = DefaultMaxBatchSize db.MaxBatchDelay = DefaultMaxBatchDelay db.AllocSize = DefaultAllocSize
MaxBatchDelay is referenced in 3 repositoriesgithub.com/boltdb/bolt github.com/fabxc/pagebuf
- 2 references in db_test.go