Hi,

Let's suppose a node Called *Participation* (participation to a meeting). 

A user can participate, so this path is created:    User<-[:PARTICIPATES]-
*Participation*-[:TO]->Meeting

Now, the user can cancel his participation. 

Should I add a label to Participation, let's called it *Cancelled*? 
Therefore, to retrieve all the effective (not cancelled) participations, I 
would do: 

MATCH (u:User {id: "123"})<-[:PARTICIPATES]-Participation-[:TO]->(m:Meeting 
{id: "456")}   //not splitting it for the example
WHERE 'Cancelled' NOT IN labels(participation)


Would it be performant? Would an indexed property (cancelled) in the 
*Participation* be better than a label in this case?

Thanks a lot,

Michael

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to