Adding compression to existing mongodb collection -
is possible add compression existing collection created prior mongodb 3.x? if so, how?
i found example of how create new collection compression, haven't found far strategies adding compression existing one. http://www.mongodb.com/blog/post/new-compression-options-mongodb-30
version prior 3.x mongodb had 1 storage engine - mmapv1 still not support compression. 3.0 mongodb introduced pluggable storage engines, , 1 of them - wiredtiger storage engine supports compression.
the problem cannot use data files created 1 storage engine (say mmapv1) 1 (e.g. wiredtiger).
so thing can mongodump, initialise mongod --storageengine wiredtiger using data directory (with --dbpath), , mongorestore new mongod instance.
Comments
Post a Comment