In your case it just had not been translated for 2μs
[0.9.0] - 2017-11-14 | Query latency is now returned as numeric (ns) instead of string.
Latency is used to keep track of the latency involved in parsing and processing
the query. It also contains information about the time it took to convert the
result into a format(JSON/Protocol Buffer) that the client expects.
Link to =>-github.com/dgraph-io/dgraph/blob/7851bb75ca753e6fe98ad504dc53cc629ed0573a/query/query.go#L92
Ya, I mean it took 1.2 second to parse, process and encode.
That is very very slow for query like this -
{
answers(func: eq(PostType, "answer")) @filter(uid_in(ParentID, 0x9)) {
uid
expand(_all_) {
uid
Title
Name
AvatarURL
}
}
}
which output 11 posts of answer type and 1 post of question type and 12 associated users for each post in 1.2 second, I mean mysql does much much faster than that.