Reputation: 12299
Imagine that there's a node NN with many relationships called B..Z.
And NN has one relationship A.
If I were to cypher:
MATCH(nn:NN_TYPE) where ...
MATCH(nn)-[:A]->(m)
RETURN m
Would this query be unduly slowed down by the multitude of other relations on NN?
Upvotes: 0
Views: 42
Reputation: 41676
No it wouldn't the relationships are stored separately on disk and also in memory.
So it would only load the type :A in your case not the :B ones.
Upvotes: 1