optimize match queries

6 views
Skip to first unread message

Yaron Naveh

unread,
Jul 27, 2012, 4:21:08 PM7/27/12
to ne...@googlegroups.com
Hi

using indexes I got many of my qureis to work pretty fast.

but queries that contain matches are still slower, e.g. MATCH  (n)<-[depends_on*0..7]-(x)<-[:likes]-(u)

is there any concept similar to indexes to improve performance here?

Thanks,
Yaron

Michael Hunger

unread,
Jul 28, 2012, 4:57:38 PM7/28/12
to ne...@googlegroups.com
This is not just any ordinary match but a variable length relationship which will touch exponentially more nodes with every step (n^7)

so perhaps you re-visit your use-case (when you really need that many hops out?)

Michael
Reply all
Reply to author
Forward
0 new messages