tl;dr What is an appropriate replacement for
"MATCH (n1: UserID)-[r1*]-(n2) RETURN n1, n2, r1" where I want to return all relationships & nodes.
We are using Neo4j to store complex POJOs.
@NodeEntity class User ( var id: UserID var text: Narrative var name: MutableSet<HumanName> var address: MutableSet<Address>
where UserID, Narrative, HumanName, and Address are similar entities and the layers go deeper
We stored this information as (:User)-[:ID]-(:UserID) and etc..
So when we wanted to return all User Information we do "MATCH (n1: UserID)-[r1*]-(n2) RETURN n1, n2, r1" but it is very slow (1 seconds per User).
Is there an alternative?