Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-29-2021 02:11 AM
10-29-2021 08:06 AM
Hello Bennu,
thank you for your reply, but I´m not able to run APOC on the community edition I´m working with.
10-29-2021 08:16 AM
Hi @arturo.guerrero !
You can always try:
MATCH(a)
WHERE //Set conditions here
WITH a
MATCH (a)-[*]->(b)
RETURN collect(b) as related
Bennu
11-02-2021 01:32 AM
Thank you Bennu,
I tried with your query, but I missed some information in return.
Then I tried to modify your query and instead I try this one:
MATCH(a)
WHERE //Set conditions here
WITH a
MATCH (a)-[*]-(b)
RETURN collect(b) as related
for returning bidirectional relationships, but trying this my server went down. Do you know why?
I´m only trying to find a way to have all the connection in a connected cluster and avoiding unconnected nodes.
Thank you
11-02-2021 03:32 AM
Hi @arturo.guerrero!
Did you set any condition on a? Otherwise you are going to query pretty much the entire db and you may have OOM problems (out of memory).
Bennu
11-02-2021 03:50 AM
yes I set a condition on a . I set WHERE id(a) = (a node id-number).
Thank you
11-02-2021 04:30 AM
Hi @arturo.guerrero!
Can you confirm with the log that it was a OOM problem?
How much ram do you have? How big is the DB/xpected result of the query?
Can you use APOC library on your db?
Bennu
11-03-2021 03:04 AM
Dear Bennu,
the RAM is about 8 GB, but my graph has in total only 161 nodes. No so much I think.
I can´t use APOC, because I haven´t access to the server directly.
Thank you
All the sessions of the conference are now available online