Hi Kamal,

There are multiple relationships between the stop due to multiple routes 
between the stops. Each relationship denotes a unique route between two 
stops.

Thanks,
Ratul

On Wednesday, June 14, 2017 at 9:18:23 PM UTC+5:30, Kamal Murthy wrote:
>
> Hi Ratul,
>
> While creating the relationships use MERGE instead of CREATE.  This 
> ensures that a single relation exists between any two stops.  From your 
> screenshot I am assuming you are using a CREATE for every relation.
>
> -Kamal 
>
> On Wed, Jun 14, 2017 at 12:36 AM, Ratul Jain <[email protected] 
> <javascript:>> wrote:
>
>>
>>
>> On Wednesday, June 14, 2017 at 1:00:41 AM UTC+5:30, Kamal Murthy wrote:
>>>
>>> ~snip
>>>>
>>>
>> Hi Kamal,
>>
>> Thank you so much for taking your time to answer my query. 
>>
>> My initial model was kind of similar but this design doesn't scale 
>> well. At some point I had multiple [:TO] relationships between various 
>> stops and that is when the query started to become really slow.
>>
>> This is the screenshot of my previous model.
>>
>>
>> <https://lh3.googleusercontent.com/-GR2MxCM1CLs/WUDnBa_TCAI/AAAAAAAACH4/u7q240cyUVI_xqXHtq2aPjsgeYHHzwRVACLcBGAs/s1600/Screen%2BShot%2B2017-06-13%2Bat%2B1.12.58%2BPM.png>
>>
>> That's the main reason the routes are denoted as an array property rather 
>> than their own relationship.
>>
>> Thanks,
>> Ratul
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Neo4j" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/neo4j/_xNewWFaxOU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to