ethdb: increase ideal batch size by 10x

This commit is contained in:
Martin Holst Swende 2019-10-23 11:09:05 +02:00
parent 538f763fdc
commit 4e835e5c5d
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -18,7 +18,7 @@ package ethdb
// IdealBatchSize defines the size of the data batches should ideally add in one // IdealBatchSize defines the size of the data batches should ideally add in one
// write. // write.
const IdealBatchSize = 100 * 1024 const IdealBatchSize = 1000 * 1024
// Batch is a write-only database that commits changes to its host database // Batch is a write-only database that commits changes to its host database
// when Write is called. A batch cannot be used concurrently. // when Write is called. A batch cannot be used concurrently.