From: "fli.rpx" <fudon...@gmail.com>
Date: Fri, 10 Aug 2012 09:59:48 -0700 (PDT)
Local: Fri, Aug 10 2012 12:59 pm
Subject: Re: [Neo4j] How to query nodes with multiple relationships?
Thanks for your reply. There are differences between the two queries. The first query, "start The second query, "start a=node(1405) match a-[:A|B*1..3] return distinct These two queries have performance difference. The first one will take two I am wondering if I can write the first query in a way of the second query. start a=node(1405) match a-[:A&B*1..3] return distinct m; Thanks, Fudong On Thursday, August 9, 2012 2:16:52 PM UTC-7, Michael Hunger wrote:
> I don't really understand your question? > Does the second query not work for you? > Michael > Am 09.08.2012 um 21:48 schrieb fli.rpx: > > I am trying to write a query to return nodes with two relationships. > > One way to do it: start a=node(1405) match a-[:A*1..3]->m, > > This will work, but takes much a lot more time than a query like this: > > I think maybe neo4j does two traversals in the first query. > > Is it possible to do a query to get nodes with both relationships like You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||