We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ea19a1 commit 1cf56efCopy full SHA for 1cf56ef
rocksdb.go
@@ -37,6 +37,8 @@ func NewRocksDB(name string, dir string) (*RocksDB, error) {
37
38
opts := gorocksdb.NewDefaultOptions()
39
opts.SetBlockBasedTableFactory(bbto)
40
+ // SetMaxOpenFiles to 4096 seems to provide a reliable performance boost
41
+ opts.SetMaxOpenFiles(4096)
42
opts.SetCreateIfMissing(true)
43
opts.IncreaseParallelism(runtime.NumCPU())
44
// 1.5GB maximum memory use for writebuffer.
0 commit comments