I have a query:
MATCH (m:Product) WHERE 'beautify' IN m._effect RETURN properties(m) as properties LIMIT 1
I used logger to measure the time spent just on the query:
print(cypher) logger.info('before query ...') result = tx.run(cypher) logger.info('after query ...')
And the result through the Python Bolt Driver is blow:
2020-11-19 19:33:54,841 - kg_api - INFO - 461 - before query ... 2020-11-19 19:33:54,895 - kg_api - INFO - 463 - after query ...
So the time is 895-841, which is 54 milliseconds. However, in the Neo4j Browser, the same query it shows it only takes 8 milliseconds:
Started streaming 1 records after 1 ms and completed after 8 ms.
In both measurements, I repeated the query many times, and the two measurements are very different.
Is this two measurements comparable?