aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--batch.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/batch.go b/batch.go
index bef1f4a..84acae6 100644
--- a/batch.go
+++ b/batch.go
@@ -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)