Hi,

We use the Neo4JCommitListener to synchronize some neo4j data back to a
database.

I have an issue when trying to deal with the delete events.

I delete nodes in a particular order in neo4j (it's a nested set, so down-up
), but when getting the events in the commitListener the order is not
respected (random), this is because deletedNodes is not an ordered set.

private final Collection<Node> deletedNodes = new HashSet<Node>();

I think it would make sense to have that ordered, like:

private final Collection<Node> deletedNodes = new LinkedHashSet<Node>();

Otherwise I don't see a reliable way to resolve this kind of issues.

Note that the same issue probably applies to the other collections in there
as well.

Thanks


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/TransactionDataImpl-deletedNodes-not-an-ordered-set-tp3571499p3571499.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to