When MATCH'ing on a single value the documentation is comprehensive and also suggests that:
MATCH (cid:Cid {contentID: '5ef78674-7631-11e4-a3cb-005056011aef')
RETURN cid
;
is faster / more efficient than
MATCH (cid:Cid)
WHERE cid.contentID = '5ef78674-7631-11e4-a3cb-005056011aef'
RETURN cid
;
What's the faster approach to inspecting many nodes for specific values, as in the query below? (each contentID is unique (constrained))
MATCH (cid:Cid)
WHERE cid.contentID IN ['5ef78674-7631-11e4-a3cb-005056011aef','5ef79922-7631-11e4-a3cb-005056011aef']
RETURN cid
;