Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-03-2019 10:27 PM
10-04-2019 02:44 AM
If you have enterprise edition, you can turn on query logging, and if you like you can also enable additional options to track how the time is distributed throughout the execution process.
Keep in mind that at least the first run of the query may be slower than subsequent runs, as the query will have to be planned, and the part of the graph touched may not be in the pagecache. We recommend discarding the first execution time, then running the query a few times to get the min or average, depending on what you're going for.
Also you'll want to make sure you have indexes (or unique constraints) in place to support fast lookup of your starting nodes.
12-06-2020 10:46 PM
Query logging page url: https://neo4j.com/docs/operations-manual/current/monitoring/logging/
10-04-2019 04:42 AM
In neo4j, there are two options to choose from when you want to analyze a query. It is explain and profile. I think you should take a look at those links:
https://neo4j.com/docs/cypher-manual/current/query-tuning/how-do-i-profile-a-query/
https://neo4j.com/docs/cypher-manual/current/query-tuning/basic-query-tuning-example/
https://neo4j.com/docs/cypher-manual/current/execution-plans/
to determine the execution time of a query in neo4j.
12-07-2020 08:23 AM
BTW, there are lots of tricks/techniques to optimize Cypher Queries.
See:
12-26-2021 12:13 PM
Hello mates
I'm trying to find the execution time of GDS algorithms using community edition of Neo4j. Is there any way to find it rather than query logging? Since this facility is specific to enterprise edition as shown in this topic.
I found this site [neo4j - How to get the execution time of a cypher query from python? - Stack Overflow] is it helpful ??
Update:
Can I rely on this to estimates query execution time?
Note: this is an example of executing shortest path algorithm:
All the sessions of the conference are now available online