mongo-export-index-clean
Remove records from a MongoDB bson export ( www.mongodb.com ) that violates index size restrictions.
A change in MongoDB version 2.6 means that older exports will fail to import properly because older releases simply ignored records with fields that exceeded the index size restrictions.
This utility takes an export and removes the records that violates the size restriction (or duplicate unique index).
Getting started
pip install mongo-export-index-clean
cd testdata
mongo-export-index-clean myfile.bson
The utility will remove records a .bad
Source code and feedback
Fully open sourced with Apache License on github.com/sverrirab/mongo-export-index-clean including issue tracking.