Storage Engines

The storage engine is the component of the database that isresponsible for managing how data is stored, both in memory and on disk.MongoDB supports multiple storage engines, as different engines performbetter for specific workloads. Choosing the appropriate storage enginefor your use case can significantly impact the performance of yourapplications.

Note

Starting in version 4.2, MongoDB removes the deprecated MMAPv1 storageengine.

  • ➤ WiredTiger Storage Engine (Default)
  • WiredTiger is the default storage enginestarting in MongoDB 3.2. It is well-suited for most workloads and isrecommended for new deployments. WiredTiger provides adocument-level concurrency model, checkpointing, and compression,among other features.

In MongoDB Enterprise, WiredTiger also supportsEncryption at Rest. SeeEncrypted Storage Engine.

  • ➤ In-Memory Storage Engine
  • In-Memory Storage Engine is available inMongoDB Enterprise. Rather than storing documents on-disk, itretains them in-memory for more predictable data latencies.