Tony Ennis
Tony Ennis

Reputation: 12299

Nodes with many relationships

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

Answers (1)

Michael Hunger
Michael Hunger

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

Related Questions