Very slow with filter or order querying #4810
Labels
investigate
Requires further investigation
status/accepted
We accept to investigate/work on it.
status/needs-attention
This issue needs more eyes on it, more investigation might be required before accepting/rejecting it
Uh oh!
There was an error while loading. Please reload this page.
What version of Dgraph are you using?
Have you tried reproducing the issue with the latest release?
Not yet with 2.x version, but nothing fix notice founded from the releases note
What is the hardware spec (RAM, OS)?
128G mem & 1.8T SSD
Linux version 3.10.0-1062.9.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Fri Dec 6 15:49:49 UTC 2019
Steps to reproduce the issue (command/config used to run Dgraph).
The data is User behavior in app like click/chat/signin/signup etc. And so the schme is like
and the graph is like
user1 - from- action1-to-user2
user1 - from- action2-to-user3
user1 - from- action3-to-user4
now we have user 5 million nodes and 2 billion action nodes, i want to query user's action list like followings
then i want to query order by time like followings
then i want to query one type action like followings
then i want to query user's action begin from a time like followings
Expected behaviour and actual result.
The problem is when i just query the whole action list of a user, it's about 5-20ms, but when i query with order or filter on one index, the time >500ms which is more then 100 times.
Why does this happen, the total action of a user is at most 2000, then with filter or order it shoud't be so slow. I guess when use filter or order, it just query the whole index kv to match what we want?
The text was updated successfully, but these errors were encountered: