The storage engine is the component of the database that is responsible for managing how data is stored, both in memory and on disk. 存储引擎是数据库的组成部分,负责管理数据在内存和磁盘中的存储方式。MongoDB supports multiple storage engines, as different engines perform better for specific workloads. MongoDB支持多个存储引擎,因为不同的引擎对于特定的工作负载表现更好。Choosing the appropriate storage engine for your use case can significantly impact the performance of your applications.为您的用例选择合适的存储引擎会显著影响应用程序的性能。
Note
Starting in version 4.2, MongoDB removes the deprecated MMAPv1 storage engine.从4.2版开始,MongoDB删除了不推荐使用的MMAPv1存储引擎。
WiredTiger is the default storage engine starting in MongoDB 3.2. 是MongoDB 3.2中启动的默认存储引擎。It is well-suited for most workloads and is recommended for new deployments. 它非常适合大多数工作负载,建议用于新部署。WiredTiger provides a document-level concurrency model, checkpointing, and compression, among other features.WiredTiger提供了文档级并发模型、检查点和压缩等功能。
In MongoDB Enterprise, WiredTiger also supports Encryption at Rest. 在MongoDB Enterprise中,WiredTiger还支持静态加密。See Encrypted Storage Engine.请参阅加密存储引擎。