Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-15-2021 05:11 AM
neo4j version - 4.3.6
desktop version - 1.4.9
browser version - 4.4.0
cypher query
//relationship- funclocation + Equipment
MATCH
(f:funclocation),
(e:equipmentno)
WHERE f.equipmenttag_d= e.equipmenttag_d
MERGE (f)-[r:HAS_EQUIPMENT]->(e);
//RETURN f.equipmenttag_d, e.equipmenttag_d limit 5;
Error details : Java heap space
Any suggestion please
Solved! Go to Solution.
11-16-2021 03:49 AM
11-15-2021 02:07 PM
I think the number of noes is very large and one of the following will solve your problem.
1: Increase the heap size.
<NEO4J_HOME>/conf/neo4j.conf
# Java Heap Size: by default the Java heap size is dynamically calculated based
# on available system resources. Uncomment these lines to set specific initial
# and maximum heap size.
dbms.memory.heap.initial_size=512m
dbms.memory.heap.max_size=1G
You can change the heap size like this.
dbms.memory.heap.initial_size=2G
dbms.memory.heap.max_size=2G
2: Use apoc.periodic.iterate
You need to install APOC plugin.
CALL apoc.periodic.iterate(
"MATCH (f:funclocation),(e:equipmentno) WHERE f.equipmenttag_d = e.equipmenttag_d RETURN f,e",
"MERGE (f)-[:HAS_EQUIPMENT]->(e)",
{batchSize:1000, parallel:false})
11-16-2021 03:49 AM
Many thanks Koji, this worked
All the sessions of the conference are now available online