Yep probably Sent from mobile device
Am 01.08.2014 um 14:51 schrieb Michael Azerhad <michael.azer...@gmail.com>: > I had to add the keyword DISTINCT in my return clause like this: > ... > UNWIND cars as extractedCars > RETURN DISTINCT(extractedCars) > > It took now about 150ms that is pretty fast. > Is DISTINCT the best strategy in this case to avoid duplicates? > > Michael > > On Friday, August 1, 2014 2:26:19 PM UTC+2, Michael Azerhad wrote: >> >> I guess I found the reason of the slowness: >> >> If Person A is friend with B, and B is friend with C and C is friend with A >> (cyclic), then the query returns duplicated cars. >> I end up with 180 cars instead of 51 .. > > -- > 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. -- 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.