We have a neo4j 3 database that we just migrated to neo4j 5. So the number of nodes, relationships etc are exactly the same
We are now at neo4j 5.9 apoc and database. Server specs are more (more cpu and ram) for the neo4 5.9 instance
The apoc.meta.subgraph is extremely fast in neo4j 3 - like instant under 100ms, but it takes up to 7 seconds in neo4j 5.9
We are using this to figure out how nodes are connected to each other and the path between them - So given a start node, and an end node - how are they connected
CALL apoc.meta.subGraph({labels:[StartNode,EndNode,PathMustIncludeThisNode], excludes:[]})
Appreciate any input you may have.