Does Dgraph supports database side caching?

Does Dgraph supports database side caching ?

Yes, Dgraph implemented their own cache (Introducing Ristretto: A High-Performance Go Cache - Dgraph Blog), which is used by the Dgraph database. You can also use it in your own Golang applications.

1 Like

Thank you for the response.
But sorry unfortunately I am not sure if I understand that correctly

What I understand is that DGraph database does not have a in-built caching strategy but we could utilise Ristretto library to implement Dgraph caching at application level (in case our app is in Golang)

if so then it doesn’t really benefit us as our client app is being built in java

Does Dgraph supports database side caching ?

Yes

ok got it. Do we need to pass any input parameter/flag while starting the database to enable caching ? sorry I couldn’t find any relevant doc for it

It’s enabled by default. There are various settings for caches. Just check the Dgraph and Badger settings using dgraph help and you will get everything.

1 Like