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 ( 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mongo-export-index-clean-1.0.0.tar.gz
.
File metadata
- Download URL: mongo-export-index-clean-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52ff15d71e7843be83c827420146a025a10556b8333bb50851f830df430ef02f |
|
MD5 | 1d4cd1c398805a54de4672f1e46e78ac |
|
BLAKE2b-256 | 3541f167e9607da4067645cae05f5d876c7bbef18bf3ecb98abc3ea11f90be27 |
File details
Details for the file mongo_export_index_clean-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: mongo_export_index_clean-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21beea19ab01960162d16a666ccc775f64909c08ab491078ed1863a84d6d6e42 |
|
MD5 | 7f7766626e252af0845f743d8b564852 |
|
BLAKE2b-256 | 0de5aefd77bc53ffaa20c7394677df5ddc527ccb1c4e40309cd277a14668006f |