We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a8932ee + 515e2be commit 8140369Copy full SHA for 8140369
1 file changed
go/base/context.go
@@ -47,6 +47,7 @@ const (
47
48
const (
49
HTTPStatusOK = 200
50
+ maxBatchSize = 1000
51
)
52
53
var (
@@ -441,8 +442,8 @@ func (this *MigrationContext) SetDMLBatchSize(batchSize int64) {
441
442
if batchSize < 1 {
443
batchSize = 1
444
}
- if batchSize > 100 {
445
- batchSize = 100
+ if batchSize > maxBatchSize {
446
+ batchSize = maxBatchSize
447
448
atomic.StoreInt64(&this.DMLBatchSize, batchSize)
449
0 commit comments