Say I have a graph with millions of users, and millions relationships between them. But there is only one relationship of typeX exists in the graph. And at this moment, Neo4j does not support schema index on relationships. Then when I run query:
Match (n)-[r:typeX]->(m) return r;
Does it mean that in order to find this one relationship,
Neo4j has to iterate all the nodes/relationships (in millions) ?
If that is the case, what can be done to improve it? I don't like the idea of introducing extra nodes. First, there are things just naturally should be treated as relations. say 'love', 'hate'. Second, even if extra nodes have been added, queries like (a)-[*..5]->(b) may become much more complex.
typeX
in your graph. – subvertallchris