I have two kind of query
the first one I start from a node such as
match (n:student)
optional math (n)-[R:takes]-(n2:course)
return n, n2
The second kind of request: I have to start (point) from a relationship such as:
match ()-[R:takes]-()
optional match ()-[R:takes]-(n:student)
optional match (n:student)-[R:takes]-(p:course)
return n,p
but when I make this kind of query specially if I point to a relationship it takes a looooot of time :( so can I find another solution how to improve this type of query (with optional much)
thank for your help