Question

I was hoping someone could point me in the right direction. I have moved from a mysql db to mongodb. Is there any tools available to run against the two databases to ensure that the data is consistent.

Ive asked Google but ive been coming up empty. The other option i was considering was to write a script and take random samples from the db's and compare the results.

Was it helpful?

Solution

I doubt there is anything for this. The only way that I can see would be to write some script that compares the two data sources. But I do have to point out that if you just merely moved tables to collections, you will run into problems. The data schema that MongoDB likes for optimal performance is in no means going to be similar to what you'd use in a relational database such as MySQL.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top