START root=node(1)
MATCH root-[r*..3]->tag
return collect(tag) as tags, collect(r) as rels--
--
Would that be for the first run? Because caches aren't warmed up by then. Run your query at least two times within the same db instance.
Ist this the first execution?Try to measure the second and later
Also you don't need to collect in your usecase as you don't have grouping valuesThen you can also use order by
Have you determined how much time is spent on the server vs. in your client code? What is the execution time if you execute the query in webadmin or the neo4j shell?
public function getTags() {
$queryTemplate =
'START root=node(1)
MATCH root-[r*..3']->tag
RETURN collect(tag) as nodes, collect(r) as rels
';
$query = new NJ\Cypher\Query($this->getClient(), $queryTemplate);
return $query->getResultSet($query);
}How many nodes and relationships are returned by that query?
UNIONMATCH n:concetto WHERE n.sing='alberi' RETURN n
MATCH n:concetto WHERE n.plur='alberi' RETURN n
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.