diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2015-06-10 11:09:42 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2015-06-10 11:09:42 -0600 |
commit | abb4088170cfac644ed5f4648a5cdc566cdb1da2 (patch) | |
tree | 3aa91f2cd1525808010d8a7aa1abf91ddd4619fc | |
parent | Merge pull request #384 from benbjohnson/drone (diff) | |
parent | Add batch size and delay docs (diff) | |
download | dedo-abb4088170cfac644ed5f4648a5cdc566cdb1da2.tar.gz dedo-abb4088170cfac644ed5f4648a5cdc566cdb1da2.tar.xz |
Merge pull request #387 from benbjohnson/batch-doc
Add batch size and delay docs
-rw-r--r-- | batch.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |