mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
ethdb: increase ideal batch size by 10x
This commit is contained in:
parent
538f763fdc
commit
4e835e5c5d
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue