我试图找出我的Java驱动程序的Cypher查询的执行时间。的Cypher查询执行时间与Neo4j的Java驱动程序
Session session = driver.session();
session.run("CREATE (a:Person {name:'Arthur', title:'King'})");
StatementResult result = session.run("Profile MATCH (a:Person) WHERE a.name = 'Arthur' RETURN a.name AS name, a.title AS title");
但我不能在StatementResult或ResultSummary,这是由StatementResult.consume(query)
返回的任何地方找到它。
我可以从ProfiledPlan
访问db命中ResultSummary
,但没有关于时间的信息。
有什么办法,我可以用Neo4j的Java驱动程序访问的Cypher查询执行时间?
嗨,你能简单地告诉我什么'a'在创建人之前CREATE(a:Person ...'代表,我一直都在看它,它是否类似于JPQL – qualebs