cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Problem using "apoc.mongodb.get"

Hi all

I need your help, I am trying to import data from a Mongo DB to Neo4J version 3.5.13 using "apoc.mongodb.get" using a call similar to the following:

CALL apoc.periodic.iterate(
	'call apoc.mongodb.get(
		"mongodb://mongo_user:mongo_pwd@mongo_db:27017/mongo_db","mongo_db","mongo_collection",{})',
	'CREATE (e:Entitat {identificador : value.keyEntity}) SET 
		e.nif=value.nif, e.entity_name=value.entity_name, e.tax=value.tax, e.tipology=value.tipology, e.type_entity=value.typeEntity, 
		e.id_mongo=value._id', 
	{batchSize:10000, parallel:true});

In the mongo collection I have 10240 documents but in Neo4J more than a million nodes are created, do you have any idea that I can be doing wrong ?.

I apologize for my poor English and thank you in advance for any help.

Regards
Juan Carlos Pérez C

0 REPLIES 0