Skip to main content

Utility to clean records from a mongodb bson export file with too large fields for indexes.

Project description

Remove records from a MongoDB bson export ( ) 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 including issue tracking.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mongo-export-index-clean, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size mongo_export_index_clean-1.0.0-py2.py3-none-any.whl (5.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size mongo-export-index-clean-1.0.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page