فهرست منبع

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 11 سال پیش
والد
کامیت
d4a853b532
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  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