I was trying to use apoc.load.jdbc with apoc.periodic.iterate.
Here is my sample procedure -
CALL apoc.periodic.iterate('
CALL apoc.load.jdbc("adw", "select distinct ") YIELD row
','
MATCH (ec:ec_id {ec_id:row.ec_id})
SET ec:test
', {batchSize:100, parallel:true}) YIELD batches, total
If I look at the summary, the stats are not coming out as expected. It was supposed to add label to 1000 nodes and it performed as expected. I can see labels added to the nodes while stats say 0 labels created. Is there anyway to get the stats right.
Taking the iterate step off of my procedure does yield results as expected
CALL apoc.load.jdbc("prodadw", "select ") YIELD row
WITH row
MATCH (ec:ec_id {ec_id:row.ec_id})
SET ec:test