dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

In loader, open UID RocksDB as ReadOnly

Open manishrjain opened this issue 10 years ago • 3 comments

https://github.com/facebook/rocksdb/wiki/RocksDB-Basics#readonly-mode

Read Only mode provides better performance; and that's exactly what we do during the second phase of the loader. So, allow UID RocksDB to be opened read only. https://github.com/dgraph-io/dgraph/blob/master/server/loader/main.go#L79

The current RocksDB library that we use doesn't support this operation. So, consider switching to https://github.com/tecbot/gorocksdb

manishrjain avatar Mar 22 '16 05:03 manishrjain

Open UID dir as read-only

ashwin95r avatar Apr 13 '16 02:04 ashwin95r

Open UID dir as read-only

manishrjain avatar Apr 28 '16 09:04 manishrjain

Tracking in Trello. Closing here.

manishrjain avatar Apr 28 '16 09:04 manishrjain