It would be interesting that you could test this in a place that everyone has access to. Like for example https://play.dgraph.io/. This Query below can be executed there and took 37ms.
If you can play in the play dgraph it’s easier for us to say something about it.
No, no. I don’t think that dGraph is slow.
I’ve just wonder if there is some pattern how to build query.
You can see, that there is three different form of one query which have significant difference in response time.
Okay, maybe this is because this query has 3 queries blocks that depend on each other and are running concurrently. The ELM var is doing a wide query so does the other block wait for it, in my view.
The second and third examples are better because you are applying “Has” to filters within the correct context.