MongoDB 3.0 First Look: Faster, More Storage Efficient, Multi-Model
MongoDB 3.0 offers a host of features ready for enterprises, including high performance speeds and Ops management.
Join the DZone community and get the full member experience.Join For Free
document-level locking and pluggable storage apis top the list of new features in mongodb 3.0, but the big-picture view points to a more prominent role for nosql databases in companies of all types and sizes. the immediate future of databases is relational, non-relational, and everything in between -- sometimes all at once.
version 3.0 of mongodb, the leading nosql database, is being touted as the first release that is truly ready for the enterprise. the new version was announced in february and shipped in early march. at least one early tester, adam comerford , reports that mongodb 3.0 is indeed more efficient at managing storage, and faster at reading compressed data.
the new feature in mongodb 3.0 gaining the lion's share of analysts' attention is the addition of the wiredtiger storage engine and pluggable api that mongodb acquired in december 2014. javaworld's andrew c. oliver states in a february 3, 2015, article that wiredtiger will likely boost performance over mongodb's default mmapv1 engine in apps where reads don't greatly outnumber writes.
oliver points out that wiredtiger's b-tree and log structured merge (lsm) algorithms benefit apps with large caches (b-tree) and with data that doesn't cache well (lsm). wiredtiger also promises data compression that reduces storage needs by up to 80 percent, according to the company.
the addition of the wiredtiger storage engine is one of the new features in mongodb 3.0 that promises to improve performance, particularly for enterprise customers. source: software development times
other enhancements in mongodb 3.0 include the following:
- document-level locking for concurrency control via wiredtiger
- collection-level concurrency control and more efficient journaling in mmapv1
- a pluggable api for integration with in-memory, encrypted, hdfs, hardware-optimized, and other environments
- the ops manager graphical management console in the enterprise version
computing's john leonard emphasizes in a february 3, 2015, article that mongodb 3.0's multi-model functionality via the wiredtiger api positions the database to compete with datastax' apache cassandra nosql database and titan graph database. leonard also highlights the new version's improved scalability.
putting mongodb 3.0 to the (performance) test
mongodb 3.0's claims of improved performance were borne out by preliminary tests conducted by adam comerford and reported on his adam's r&r blog in posts on february 4, 2015 , and february 5, 2015 . comerford repeated compression tests with the wiredtiger storage engine in release candidate 7 (rc7) -- expected to be the last before the final version comes out in march -- that he ran originally using rc0 several months ago. the testing was done on an ubuntu 14.10 host with an ext4 file system.
the results showed that wiredtiger's on-disk compression reduced storage to 24 percent of non-compressed storage, and to only 16 percent of the storage space used by mmapv1. similarly, the defaults for wiredtiger with mongodb (the wt/snappy bar below) used 50 percent of non-compressed wiredtiger and 34.7 percent of mmapv1.
testing wiredtiger storage (compressed and non-compressed) compared to mmapv1 storage showed a tremendous advantage for the new mongodb storage engine. source: adam comerford
comerford's tests of the benefits of compression for reads when available i/o capacity is limited demonstrated much faster performance when reading compressed data using snappy and zlib, respectively. a relatively slow external usb 3.0 drive was used to simulate "reasonable i/o constraints." the times indicate how long it took to read the entire 16gb test dataset from the on-disk testing into memory from the same disk.
read tests from compressed and non-compressed disks in a simulated limited-storage environment indicate faster reads with wiredtiger in all scenarios. source: adam comerford
all signs point to a more prominent role in organizations of all sizes for mongodb in particular and nosql in general. running relational and non-relational databases side-by-side is becoming the rule rather than the exception. the new morpheus virtual appliance puts you in good position to be ready for multi-model database environments. it supports rapid provisioning and deployment of mongodb v3.0 across public, private and hybrid clouds. sign up for a free trial now!
Published at DZone with permission of Gen Furukawa, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.