WildBill
WildBill

Reputation: 9291

Need to restart neo4j to view new data

I have a java program that creates nodes and relationships in a neo4j database. The program runs fine but when I try to view the web console to query the new nodes they do not appear in any results. Only after I restart the database neo4j stop and neo4j start do they then appear in the results.

Is there a timeout or cache setting I am not aware of?

Upvotes: 0

Views: 722

Answers (1)

Michael Hunger
Michael Hunger

Reputation: 41676

You can't use the same store directory from an embedded app and the server at the same time.

If you still want this concurrently then you can ...

As your embedded code is pretty simple you could convert it into parametrized cypher statements that run against the server. Eg using the jdbc driver.

Alternatively you can move your code into the server implementing an unmanaged extension and offering a REST endpoint for importing files.

Upvotes: 1

Related Questions