aboutsummaryrefslogtreecommitdiffstats
path: root/skate/zipkey
diff options
context:
space:
mode:
Diffstat (limited to 'skate/zipkey')
-rw-r--r--skate/zipkey/batch.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/skate/zipkey/batch.go b/skate/zipkey/batch.go
index 9924b65..049c3b2 100644
--- a/skate/zipkey/batch.go
+++ b/skate/zipkey/batch.go
@@ -5,6 +5,8 @@ import (
"sync"
)
+const defaultBatchSize = 10000
+
// Batcher runs reducers in parallel on batches of groups.
type Batcher struct {
Size int
@@ -19,7 +21,7 @@ type Batcher struct {
// NewBatcher set ups a new Batcher with a batch size of 1000.
func NewBatcher(gf groupFunc) *Batcher {
- return NewBatcherSize(gf, 1000)
+ return NewBatcherSize(gf, defaultBatchSize)
}
// NewBatcherSize initializes a batcher with a given size.