Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-13-2022 05:10 PM
APOC Version: 4.3.0.5.0
Neo4j Version : 4.3.10
Hello, I am using the apoc.export.json.data to export to file but the batchSize doesn't seem to work.
Reference link -> https://neo4j.com/labs/apoc/4.3/export/json/
MATCH (nod:User) MATCH ()-[rels:KNOWS]->() WITH collect(nod) as a, collect(rels) as b
CALL apoc.export.json.data(a, b, "knows.json",{batchSize:10000})
YIELD file, source, format, nodes, relationships, properties, time, rows, batchSize, batches, done, data
RETURN file, source, format, nodes, relationships, properties, time, rows, batchSize, batches, done, data
The batchSize in the response is not reflecting.
10-13-2022 09:35 PM
I did not see any references to a 'batchSize' option for the configuration for this family of apoc procedures. I see three: 'writeNodeProperties', 'stream', and 'jsonFormat'.
https://neo4j.com/labs/apoc/4.3/export/json/
You may want to refactor your query as follows, so you don't create a Cartesian product between your two match statements:
OPTIONAL MATCH (nod:User)
With collect(nod) as a
OPTIONAL MATCH ()-[rels:KNOWS]->()
WITH a, collect(rels) as b
CALL apoc.export.json.data(a, b, "knows.json", {})
YIELD file, source, format, nodes, relationships, properties, time, rows, batchSize, batches, done, data
RETURN file, source, format, nodes, relationships, properties, time, rows, batchSize, batches, done, data
All the sessions of the conference are now available online