Now I want to count how many users like sushi. e.g 200k users like Sushi. Can I do that? I need the result quickly within a few seconds. is that possible? Does someone have experience with that?
I remember Michael and Amaster Senseis told me āAggregations in dgraph are quickly and no problemā or something like that; but I forgot in what context you told that, therefore I ask now to be sure
I donāt have a million or even 200K nodes of a single type to test with, but in theory this is grabbing a posting list and then just counting that list. (Maybe it also is doing a type filter in DQL for completeness.) Golang should have no problem counting to 200K and should do it very very quickly. It is already in a list it is not like it is doing a full table scan or join, just counting an existing list.
I think what we are trying to say is on the milliseconds scale unless you have terrible disks or extremely rapid ingestion to this predicate or any other extenuating circumstances. At the same time⦠Just try it.