瀏覽代碼

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