Skip to content
Snippets Groups Projects
Commit 66aa027e authored by Manish R Jain's avatar Manish R Jain
Browse files

Aync writes to RocksDB are 1000x faster than sync writes. We don't need to do...

Aync writes to RocksDB are 1000x faster than sync writes. We don't need to do synchronous writes because we do sync writes on commit logs
parent 22299861
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ func (s *Store) Init(filepath string) {
s.ropt = rocksdb.NewReadOptions()
s.wopt = rocksdb.NewWriteOptions()
s.wopt.SetSync(true)
s.wopt.SetSync(false) // We don't need to do synchronous writes.
var err error
s.db, err = rocksdb.Open(filepath, s.opt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment