AFAIK, no guarantees on ordering, thus the reason for the indexing
utilities.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Adam Rabung
Sent: Thursday, December 10, 2009 5:15 PM
To: Neo user discussions
Subject: [Neo] Ordering of getRelationships

Hi,
I was wondering if there are any guarantees about the order of relationships
that come out of Node.getRelationships?  In my test case (attached) it seems
they come out in "creation date, ascending" order, until you close and
re-open the database.  After the database is reopened, it seems like the
order is reversed. For example:
1. Create a parent
2. Add child c1
3. Add child c2
4. getRelationships on parent returns c1, c2 5. commit and finish 6.
getRelationships on parent returns c1, c2 7. Shutdown and reopen 8.
getRelationships on parent returns c2, c1

It's been a long week, and I'm convinced I'm messing something up here.

Thanks,
Adam

_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to