Is there a way we can get the size on disk of relevant subjects?

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?

Hey @geoyws

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.

1 Like

@pawan I found out that you could do /state on zero to get the size of each predicate, so no worries. Cheers.