optimizing badger cache, won a 10-15% improvement in most benchmarks
This commit is contained in:
10
pkg/dgraph/utils.go
Normal file
10
pkg/dgraph/utils.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package dgraph
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// unmarshalJSON is a helper to unmarshal JSON with error handling
|
||||
func unmarshalJSON(data []byte, v interface{}) error {
|
||||
return json.Unmarshal(data, v)
|
||||
}
|
||||
Reference in New Issue
Block a user