getAllNodes() and transactions.

65 views
Skip to first unread message

Marko Rodriguez

unread,
May 11, 2012, 3:01:54 PM5/11/12
to ne...@googlegroups.com
Hello,

How do I iterate through all nodes and be respective of any node deletions I made in the current transaction?

As it stands, it seems that
GlobalGraphOperations.at(rawGraph).getAllNodes()
..doesn't respect the current transaction's view.

Thoughts?,
Marko.

http://markorodriguez.com

Peter Neubauer

unread,
May 15, 2012, 3:06:23 AM5/15/12
to ne...@googlegroups.com
Marko,
this is by design. Deleted elements are marked as deleted during the
current TX and deleted upon commit. They could be deleted directly,
but both designs have their pros and cons, so we chose the former.

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j

Mattias Persson

unread,
May 16, 2012, 7:42:08 AM5/16/12
to ne...@googlegroups.com
Yup, getAllNodes/Relationships doesn't take into consideration created/deleted nodes/relationships, although to match neo4j functionality in general deletions shouldn't affect it, but however created nodes/rels should be visible in those iterators. It's a known issue https://github.com/neo4j/community/issues/457

2012/5/15 Peter Neubauer <peter.n...@neotechnology.com>



--
Mattias Persson, [mat...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
Reply all
Reply to author
Forward
0 new messages