Просмотр исходного кода

Reduce to batches of 100,000 keys

Gwyneth Llewelyn 7 лет назад
Родитель
Сommit
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
 
 /*