neo4j-java-api

Determine Neo4j database version

帅比萌擦擦* 提交于 2019-12-08 02:49:46
问题 The Neo4j Java API automatically updates outdated databases to the current version when I call new GraphDatabaseFactory().newEmbeddedDatabase(File storeDir) I would like to check what version the database is before doing that. Is there a way to do that with the Java API? Or alternatively: Where is the database version stored so I can read it out manually? 回答1: Release version I dug into the Neo4j API source and found an answer. Neo4j reads out the previous version from the debug.log file in

Cypher query execution time with Neo4j java driver

瘦欲@ 提交于 2019-12-07 18:55:02
问题 I am trying to find out execution time of my Cypher query with java driver. 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" ); But I could not find it anywhere in the StatementResult or in the ResultSummary, which is returned by StatementResult.consume(query) . I could access db hits from ProfiledPlan in

Determine Neo4j database version

微笑、不失礼 提交于 2019-12-06 09:16:12
The Neo4j Java API automatically updates outdated databases to the current version when I call new GraphDatabaseFactory().newEmbeddedDatabase(File storeDir) I would like to check what version the database is before doing that. Is there a way to do that with the Java API? Or alternatively: Where is the database version stored so I can read it out manually? Release version I dug into the Neo4j API source and found an answer. Neo4j reads out the previous version from the debug.log file in the logs directory. Whenever the database is started the version is printed into the log file as Kernel

Neo4J Java Native APIs vs Traversal APIs vs Cypher

北城余情 提交于 2019-12-02 01:51:07
问题 Has anyone done the performance evaluation for Neo4J Java Native APIs, Traversal APIs and Cypher. Which of the above three options will yield me better result from performance perspective? Also, for write operations, should I use Native java APIs or cypher. Is there a possibility to bulk DB operations in native APIs so that it just hit the DB only once and not for every node/relationship creation. 回答1: You'll be interested in this article. But the main takeaway from their tests is The Core