Discussion on: How to perform migrations in Mongodb

eruizdechavez profile image
Erick Ruiz de Chavez

It's been a while since I used MongoDB, that being said, one of the selling points of NoSQL (or at least MongoDB) if I recall correctly is to have a schema-less, document oriented database. I remember following mostly a duck-typing approach whenever I used MongoDB. Obviously everyone's requirements are different and there must be a good reason to require a schema instead of just duck-typing.

There seem to be two good tools for MongoDB migrations, migrate-mongo and mongobee. migrate-mongo is a Node.js project and mongobee is a Java project.

I would personally use migrate-mongo because I am not familiar with Java and from what I can tell, the migration scripts are Java files.