Someone please help. Is this the correct way of posing query? This query 
gave me output after 21 minutes. But the output is not as expected. It has 
given the individual counts of all 4 (k,l,m,n of types mentioned in above 
query) without accounting for relationships I have used in MATCH clause!!


On Friday, 3 October 2014 19:00:34 UTC+5:30, Mohana Krishna, IIT Bombay, 
India wrote:
>
> I have issued a following query as part of my application:
>
>
> MATCH 
>
> (k{type:"ASSAULT"})-[r1:CLOSE_TO]->( l {type:"BATTERY"}),
>
> (k{type:"ASSAULT"})-[r2:CLOSE_TO]->(m{type:"THEFT"}),
>
> (k{type:"ASSAULT"})-[r3:CLOSE_TO]->(n{type:"NARCOTICS"}),
>
> ( l {type:"BATTERY"})-[r4:CLOSE_TO]->(m{type:"THEFT"}),
>
> ( l {type:"BATTERY"})-[r5:CLOSE_TO]->(n{type:"NARCOTICS"}),
>
> (m{type:"THEFT"})-[r6:CLOSE_TO]->(n{type:"NARCOTICS"}) 
>
> return count(distinct(k)) as k_count,  count(distinct(l)) as l_count,   
> count(distinct(m)) as m_count ,   count(distinct(n)) as n_count;
>
>
> The query is running indefinitely without giving results. I have 
> cross-checked but could not find any error. Am I missing something? Is 
> there a limit on maximum number of matches that can be done??
>
>  Please help.
>

-- 
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 neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to