I have table, with around 125 million records in MySql. I want to move it to mongodb.

What would be the best approach to migrate this huge table to mongodb?

I was thinking to fetch one by one row using a nodejs application and create an array for bulk insert in mongodb. But I think it will take too much memory (Haven't check it though).


Export that table to JSON format (f.ex. MySQL Workbench) and use mongoimport to import it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.