Mongodb Classroom image

Anil  Bist / Professional / DataBase

To post your Question Join Classroom
Lesson Topics's No:-  |1 | 2|Last
Lessons:-Pluggable Storage Engines-WiredTiger

Pluggable Storage Engines


WiredTiger supports LSM trees to store indexes. LSM trees are faster for write operations when you need to writem huge workloads of random inserts.

In WiredTiger, there is no in-place updates. If you need to update an element of a document, a new document will be inserted while the old document will be deleted.

WiredTiger also offers document-level concurrency. It assumes that two write operations will not affect the same document, but if it does, one operation will be rewind and executed later. That's a great performance boost if rewinds are rare.

WiredTiger supports Snappy and zLib algorithms for compression of data and indexes in the file system. Snappy is the default. It is less CPU-intensive but have a lower compression rate than zLib.


How to use WiredTiger Engine

mongod --storageEngine wiredTiger --dbpath <newWiredTigerDBPath>



1. After mongodb 3.2, the default engine is WiredTiger.
2. newWiredTigerDBPath should not contain data of another storage engine. To migrate your data, you have to dump them, and re-import them in the new storage engine.

mongodump --out   <exportDataDestination>
mongod --storageEngine wiredTiger --dbpath    <newWiredTigerDBPath>
mongorestore   <exportDataDestination> 
Anil  Bist

Skills    Mongodb

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India

I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a


  Students (0)