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
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
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
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
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
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
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
.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
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
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
10 matches
Mail list logo