From 66aa027eb2cb8c10c706c19fa79a6a655ba6f803 Mon Sep 17 00:00:00 2001 From: Manish R Jain <manishrjain@gmail.com> Date: Wed, 9 Mar 2016 10:27:31 +1100 Subject: [PATCH] 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 --- store/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/store.go b/store/store.go index 01f2785f..ea44df05 100644 --- a/store/store.go +++ b/store/store.go @@ -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) -- GitLab