Extremely slow Gremlin traversals

17 views
Skip to first unread message

Courtney Wang

unread,
Mar 7, 2012, 2:17:03 PM3/7/12
to neo4jrb
Hi everyone,

I'm pretty new to Neo4j and have been playing around with social graph
data using Neo4j.rb and Gremlin. Stats follow:

6.2 million nodes
73 million relationships

The two main types of nodes are Users and Items. Users -[Friend]->
Users and Users -[Like] -> Items. Users and Items have IDs and there's
an index on these IDs. I've been have some issues with traversal
speed. Queries like

a =[:]
g.v(*user node
id*).out('Item#likes').in('Item#likes').out('Item#likes').groupCount(a)
(this example was taken from https://github.com/tinkerpop/gremlin/wiki)

take minutes. I think I might have not created necessary indices or
the right ones perhaps? Users generally have 30-40 outgoing Like edges
and 300 Friend edges, while Items can have >>6000 incoming Like
edges.

Any help/pointing in the right direction for me to fill in graph DB
knowledge gaps is much appreciated. Thanks in advance!

-Courtney

Peter Neubauer

unread,
Mar 7, 2012, 2:31:55 PM3/7/12
to neo...@googlegroups.com

Hi Courtney,
I think this dataset will require some setup love.
Maybe you can contact me off list to take a closer look?

--
You received this message because you are subscribed to the Google Groups "neo4jrb" group.
To post to this group, send email to neo...@googlegroups.com.
To unsubscribe from this group, send email to neo4jrb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/neo4jrb?hl=en.

Reply all
Reply to author
Forward
0 new messages