2

my current project shows a lost-update problem because two different threads load and save a neo4j DynamicProperties field. There is a really good explanation of the problem in another stackoverflow question (what does transaction mean in reference with neo4j database). Hence, I want to change neo4j to "repeatable read" isolation level, but I cannot figure out how to do that. There is no neo4j or spring data neo4j documentation about how to change it.

I use spring data neo4j version 3.0.0.RC1 and with neo4j 2.0.1 and I use a simple configuration:

<neo4j:config graphDatabaseService="graphDatabaseService" />
<bean id="graphDataBaseFactory" class="org.neo4j.graphdb.factory.GraphDatabaseFactory"/>
<bean id="graphDatabaseService" factory-bean="graphDataBaseFactory" factory-method="newEmbeddedDatabase" destroy-method="shutdown">
    <constructor-arg type="java.lang.String" value="${database.neo4j.storedirectory}"/>
</bean>
Community
  • 1
  • 1
Kai Schlegel
  • 183
  • 2
  • 11

0 Answers0