Reputation: 59
MATCH
(t:T)-[:Rel]-(o:Espresso)-[:Rel]->(l:Location)<-[:Rel]-(p:Espresso {id:"ttt"})-[:Rel]->t,
o--(:Rating)--p
RETURN
distinct o.id AS otherId,
l.location AS location,
t.hour AS hour,
t.day as day
It times out. I tried it as a where
clause and using with
but no difference. The first part before the ,
executes quickly...
Upvotes: 2
Views: 91
Reputation: 59
this seems to have fixed it. MATCH (t:Time)-[:Rel]-(o:Espresso)-[:Rel]->(l:Location)<-[:Rel]-(p:Espresso {id:"ttt"})-[:Rel]->t with DISTINCT o,p,t,l MATCH (o)--(rat:Rating)--(p) RETURN DISTINCT o.id as otherId, l.location as location, t.start as start, t.day as day
thanks
Upvotes: 1
Reputation: 2996
Improvements In your query/structure
Upvotes: 1
Reputation: 10856
There are only 30 nodes/50 relationships in the whole database? That seems really odd... Have you previously created/deleted a lot of nodes, maybe as part of experimentation? If so, you may want to try restarting the server.
Upvotes: 1