MongoDB Storage Engine

Source: Internet
Author: User

MongoDB's storage engine is an important component that is responsible for how MongoDB stores data in memory and on disk. MongoDB supports a variety of storage engines because different scenarios use different storage engines to make MongoDB perform better.

Starting with MongoDB3.2, MongoDB uses the Wiredtiger storage engine by default. It is ideal for applications with high loads and is also the official preferred storage engine for recommended use. The Wiredtgier storage Engine provides a document-level concurrency model, checkpoint functionality, and compression capabilities. The MongoDB Enterprise version also supports encryption features.


MongoDB3.2 before MMAPV1 is the default storage engine, MongoDB Enterprise Edition also supports the memory storage engine, storing documents in memory.


1.WiredTiger Storage Engine

Starting with MongoDB3.0, the 64-bit version of MongoDB supports the Wiredtiger storage engine. The storage engine can be specified at the command line or in the configuration file, and MongoDB3.2 uses the Wiredtiger storage engine by default.

--storageengine=wiredtiger

Ymal Format configuration file

Storage.engine=wiredtiger

Document-level concurrency

Wiredtiger uses document-level concurrency to control write operations. Therefore, multiple clients can modify different documents for the same collection at the same time.












Reference Documentation:

https://docs.mongodb.com/manual/storage/



This article is from the Linux SA John blog, so be sure to keep this source http://john88wang.blog.51cto.com/2165294/1784379

MongoDB Storage Engine

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.