Have you looked at my recommendations for optimizing the type system? Replacing dgraph.type under the hood with an edge based type system instead of a predicate based type system?
https://discuss.hypermode.com/t/ask-dgraph-founder-anything/16352/28?u=amaster507
Also brought up here