There is 1000w data.
"data": {
"data": [
{
"count": 10000000
}
]
}
When I use match to query, it took about 60s.
String queryQl =
"query ProjectGraphInfo($a: string){\n" +
" ProjectGraphInfo(func: match(expert_name, $a, 3)) {\n" +
" count(uid)\n" +
" }\n" +
"}\n";
Map<String, String> vars = Collections.singletonMap("$a", "专家3");
long startTime = System.currentTimeMillis();
DgraphProto.Response res = client.newReadOnlyTransaction().queryWithVars(queryQl, vars);
long endTime = System.currentTimeMillis();
String out = Thread.currentThread().getName() + "-->" + (endTime - startTime) + "ms\n";
And the spending time is as follows:
graph-client-3-->68142ms
Are fuzzy queries so slow?Or maybe I made a mistake somewhere?