Re: [Neo4j] Traversals versus Indexing

2011-06-21 Thread Mattias Persson
2011/6/20 Jim Webber j...@neotechnology.com Hi Massimo, Yes, those IDs can be recycled. In theory you don't know when they'll be recycled either (in practice they may be stable between reboots in the current stack, but who knows what future behaviour will be). And hence it's a bad practice

Re: [Neo4j] Traversals versus Indexing

2011-06-17 Thread Mattias Persson
getNodeById is fast/immediate 2011/6/16 Aseem Kishore aseem.kish...@gmail.com Indeed getNodeById(). Aseem On Thu, Jun 16, 2011 at 10:11 AM, Mattias Persson matt...@neotechnology.com wrote: Are you thinking of GraphDatabaseService#getNodeById / #getRelationshipById ? Or index

Re: [Neo4j] Traversals versus Indexing

2011-06-17 Thread Aseem Kishore
Cool, thanks! On Fri, Jun 17, 2011 at 5:01 AM, Mattias Persson matt...@neotechnology.comwrote: getNodeById is fast/immediate 2011/6/16 Aseem Kishore aseem.kish...@gmail.com Indeed getNodeById(). Aseem On Thu, Jun 16, 2011 at 10:11 AM, Mattias Persson matt...@neotechnology.com

Re: [Neo4j] Traversals versus Indexing

2011-06-16 Thread Mattias Persson
I don't know your use case at all, but one of the benefits you get with traversing compared to index lookups is that one hop from a node to another is instantaneous ( 1 million hops / second on a fully cached graph), whereas index lookups are several order of magnitudes slower than that. But

Re: [Neo4j] Traversals versus Indexing

2011-06-16 Thread Aseem Kishore
Are lookups by ID also so much slower than traversals? Aseem On Thu, Jun 16, 2011 at 3:45 AM, Mattias Persson matt...@neotechnology.comwrote: I don't know your use case at all, but one of the benefits you get with traversing compared to index lookups is that one hop from a node to another is

Re: [Neo4j] Traversals versus Indexing

2011-06-16 Thread Mattias Persson
Are you thinking of GraphDatabaseService#getNodeById / #getRelationshipById ? Or index lookups? 2011/6/16 Aseem Kishore aseem.kish...@gmail.com Are lookups by ID also so much slower than traversals? Aseem On Thu, Jun 16, 2011 at 3:45 AM, Mattias Persson matt...@neotechnology.comwrote: I

Re: [Neo4j] Traversals versus Indexing

2011-06-16 Thread Aseem Kishore
Indeed getNodeById(). Aseem On Thu, Jun 16, 2011 at 10:11 AM, Mattias Persson matt...@neotechnology.com wrote: Are you thinking of GraphDatabaseService#getNodeById / #getRelationshipById ? Or index lookups? 2011/6/16 Aseem Kishore aseem.kish...@gmail.com Are lookups by ID also so much

Re: [Neo4j] Traversals versus Indexing

2011-06-13 Thread Craig Taverner
.nabble.com/Neo4j-Traversals-versus-Indexing-tp3057515p3057538.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

[Neo4j] Traversals versus Indexing

2011-06-12 Thread Aman
What is faster - Traversals or Indexing? I mean if one has a database model that can offer a choice between the two, what should one choose? Also, what about when the scalability factor comes in? ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] Traversals versus Indexing

2011-06-12 Thread espeed
It depends on the traversal you are running. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Neo4j-Traversals-versus-Indexing-tp3057515p3057538.html Sent from the Neo4J User List mailing list archive at Nabble.com