Nothing has been created for compression. Some operating systems offer disk / file compression, but if you want more control, I would suggest you compress it using the library for any programming language you use and manually manage the compression.
For example, NodeJs offers simple, convenient methods for this: http://nodejs.org/api/zlib.html#zlib_examples
Update 3.0
If you decide to switch to the new WiredTiger storage engine that ships with 3.0, you can choose between several types of compression, as described here . Of course, you'll want to check out this change in workloads to see if additional CPU utilization is worth it.
WiredPrairie Aug 02 '13 at 10:59
source share