dgraph
dgraph copied to clipboard
In loader, open UID RocksDB as ReadOnly
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
Open UID dir as read-only
Open UID dir as read-only
Tracking in Trello. Closing here.