thanks for getting back to us with that, real world use-cases are very helpful to improve the product.
Please note that cypher is still under heavy development, with little time spent so far on performance optimization.
It would be great if you could share your dataset (offline) with me to allow some analysis (or a generator that can generate your dataset).
If you're returning v.date and friend_viewed, why is it optional in the first place?
You might try the following.
> CYPHER 1.7 START user=node:node(userId = "378531")
> > MATCH user-[:FOLLOW]->friend-[v:VIEW]->friend_viewed
> > WHERE v.date > "2012-04-10"
AND not (user-[:VIEW]->friend_viewed)
>
> > return v.date,friend_viewed
Cheers
Michael
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j
Was this for the first run? If not please try multiple runs.It should be much faster now. Of course you always have the means of using the core api or gremlin.Still I would love to profile your case.Michael
Sent from mobile device
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j