Re: [Neo4j] Does the REL creation lock the start+end node(s)?

2012-01-10 Thread Josef Holy
Ah, right - the index-free traversal is the king! Thanks Peter! -Josef. On úterý, 10. ledna 2012 at 20:40, Peter Neubauer wrote: > Josef, > Yes, N1 is locked during the creation of the relationship. Different than a > table, Neo4j actually stor direct links between the nodes as relationshi

Re: [Neo4j] Does the REL creation lock the start+end node(s)?

2012-01-10 Thread Peter Neubauer
Josef, Yes, N1 is locked during the creation of the relationship. Different than a table, Neo4j actually stor direct links between the nodes as relationships, making data-local traversals without index lookups possible. This means both nodes will be locked during the TX1 . HTH /Peter On Tuesday,

[Neo4j] Does the REL creation lock the start+end node(s)?

2012-01-10 Thread Josef Holy
Hello neo4j-ers, I have question - when 2 threads (in embedded neo4j mode) want to concurrently create the following RELs A and B (each within their own transaction, nodes N1, N2 and N3 existed before): Thread 1 - tx1 - N1--RELA-->N2 Thread 2 - tx2 - N1--RELB-->N3 does the node N1 represent