浏览代码

Reduce to batches of 100,000 keys

Gwyneth Llewelyn 7 年之前
父节点
当前提交
663c41bd0f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gosl.go

+ 1 - 1
gosl.go

@@ -38,7 +38,7 @@ type avatarUUID struct {
 	Grid string
 } 
 
-var BATCH_BLOCK = 1000000	// how many entries to write to the database as a block; the bigger, the faster, but the more memory it consumes
+var BATCH_BLOCK = 100000	// how many entries to write to the database as a block; the bigger, the faster, but the more memory it consumes
 							// the authors say that 100000 is way too much
 
 /*