title: Is it possible to override Neo4j lock behavior for relationships?
body: <p>See: <a href="http://neo4j.com/docs/stable/transactions-locking.html" rel="nofollow">http://neo4j.com/docs/stable/transactions-locking.html</a>
  "When creating or deleting a relationship a write lock will be taken on the specific relationship and both its nodes"</p>
  
  <p>Suppose I need to create many relationships within a transaction.  I don't care about locking on the nodes that are connected to those relationships.  In particular, for other concurrent transactions:
  1) Updating properties on those nodes does not interfere with my operation
  2) Creating or removing <em>other</em> relationships to those nodes would not interfere with my operation</p>
  
  <p>The "default locking behavior" generates a huge amount of contention and possibilities for deadlocks in some cases.  For example, I have a set X of 30 nodes, and two transactions are concurrently creating new nodes that have relationships to each node in X.  That requires each transaction to get a write lock on all 30 nodes in X; deadlock is a strong possibility.</p>
  
  <p>The description of the behavior as "default" makes it sound like it is possible to override this behavior.  If so, how can I do this?</p>
  
  <p>(More background: the system normally uses Spring Data Neo4j and Cypher queries to interact with the database.)</p>