Merge pull request #387 from benbjohnson/batch-doc

Add batch size and delay docs
master
Ben Johnson 2015-06-10 11:09:42 -06:00
commit abb4088170
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ import (
// take permanent effect only after a successful return is seen in
// caller.
//
// The maximum batch size and delay can be adjusted with DB.MaxBatchSize
// and DB.MaxBatchDelay, respectively.
//
// Batch is only useful when there are multiple goroutines calling it.
func (db *DB) Batch(fn func(*Tx) error) error {
errCh := make(chan error, 1)