@@ -25,10 +25,15 @@ import (
2525)
2626
2727func NewGenjiDB (t * testing.T , storagePath string ) * genji.DB {
28+ badger .DefaultIteratorOptions .PrefetchValues = false
29+
2830 opts := badger .DefaultOptions (storagePath ).
2931 WithZSTDCompressionLevel (3 ).
3032 WithBlockSize (8 * 1024 ).
31- WithValueThreshold (128 * 1024 )
33+ WithValueThreshold (128 * 1024 ).
34+ WithValueLogFileSize (64 * 1024 * 1024 ).
35+ WithBlockCacheSize (16 * 1024 * 1024 ).
36+ WithMemTableSize (16 * 1024 * 1024 )
3237
3338 engine , err := badgerengine .NewEngine (opts )
3439 require .NoError (t , err )
@@ -38,10 +43,15 @@ func NewGenjiDB(t *testing.T, storagePath string) *genji.DB {
3843}
3944
4045func NewBadgerDB (t * testing.T , storagePath string ) * badger.DB {
46+ badger .DefaultIteratorOptions .PrefetchValues = false
47+
4148 opts := badger .DefaultOptions (storagePath ).
4249 WithZSTDCompressionLevel (3 ).
4350 WithBlockSize (8 * 1024 ).
44- WithValueThreshold (128 * 1024 )
51+ WithValueThreshold (128 * 1024 ).
52+ WithValueLogFileSize (64 * 1024 * 1024 ).
53+ WithBlockCacheSize (16 * 1024 * 1024 ).
54+ WithMemTableSize (16 * 1024 * 1024 )
4555
4656 engine , err := badgerengine .NewEngine (opts )
4757 require .NoError (t , err )
0 commit comments