I'm working on developing a network graph that we're loading in neo4j. I'm still at a prototyping stage and trying to figure out a few queries.
So one of the asks would be to get a list of all nodes connected to a particular device or later one, what is affected if a link is disconnected.
This is what I'm running to get a list of attached devices:
match (n:Resource)-[*..15]->(m:ns1__NetworkAddress) where id(n) = 71 return m.ns1__value, id(m)
That gives me list of all node IDs and IPs that are attached to node 71. When I use [*..10] that seems to work, but if I leave it unbound or even bound it to 15 it never returns.
Is there an equivalent of a SQL explain that I could use? Or should I be adding constraints or indeces to optimize this type of query?
It feels like asking for all nodes attach to X should be a pretty basic ask and I'm not even loading THAT much data. There's about 1500 nodes that I'm working with. Relative to say FB or other data set this is dismal.
Side note: Any recommended reading to better understand how to model data, structure data etc.