i had tested these two query
first one
{
result(func: eq(entityName,"aaa")) {
uid
entityName
creditCode
~invest {
uid
entityName
creditCode
~invest{
uid
entityName
creditCode
~invest{
uid
entityName
creditCode
~invest{
uid
entityName
creditCode
~invest{
uid
entityName
creditCode
}
}
}
}
}
}
}
and the second one ,a @recurse query
{
result(func: eq(entityName,"aaa")) @recurse(depth: 5, loop: true){
uid
entityName
creditCode
~invest
}
}
they return same result,but the first one is way faster than @recurse query,first one cost 98 ms,second one cost 6286.89 ms, can anybody tell me why this happen,thanks