Say if we go by the Subject-Predicate-Object convention and want to find the size on disk of all Hotel dgraph.type subjects, how should we go about this?
That isn’t possible as Dgraph stores data shared by predicate. So you can get the size of data stored for a predicate like
dgraph.type but not for a particular
dgraph.type. I suppose you could do a
groupby query to get number of nodes for a particular type and do some approximations based on that.
@pawan I found out that you could do
/state on zero to get the size of each predicate, so no worries. Cheers.