Explorar o código

Reduced BatchSizeMaximum by 1 as 65535 is the true maximum. More than this number in statements to execute will cause the batch to fail.

Phillip Couto %!s(int64=11) %!d(string=hai) anos
pai
achega
d4a853b532
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      session.go

+ 3 - 1
session.go

@@ -469,4 +469,6 @@ var (
 	ErrTooManyStmts = errors.New("too many statements")
 )
 
-const BatchSizeMaximum = 65536
+// BatchSizeMaximum is the maximum number of statements a batch operation can have.
+// This limit is set by cassandra and could change in the future.
+const BatchSizeMaximum = 65535