Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRollback is returned from Update() when a future transaction in the // same coalescing group returns an error and rolls back the transaction. ErrRollback = errors.New("rollback") // ErrInvalidLimit is returned when the limit passed to New() is // a non-positive integer. ErrInvalidLimit = errors.New("invalid coalescer limit") // ErrInvalidInterval is returned when the interval passed to New() is // a non-positive duration. ErrInvalidInterval = errors.New("invalid coalescer interval") )
Functions ¶
This section is empty.
Types ¶
type Coalescer ¶
type Coalescer struct {
// contains filtered or unexported fields
}
Coalescer automatically groups together Bolt write transactions and flushes them together as a single transaction. This approach is useful for increasing write throughput. However, because all transactions are grouped together, rolling back one transaction will roll back all of them.
Click to show internal directories.
Click to hide internal directories.