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. Choosing the appropriate storage engine for your use case can significantly impact the performance of your applications.存储引擎是数据库的一个组件,负责管理数据在内存和磁盘上的存储方式。MongoDB支持多种存储引擎,因为不同的引擎对特定的工作负载表现更好。为用例选择合适的存储引擎会显著影响应用程序的性能。
- ➤
WiredTiger Storage Engine (Default)WiredTiger存储引擎(默认) WiredTiger
is the default storage engine 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. See Encrypted Storage Engine.在MongoDB Enterprise中,WiredTiger还支持静态加密。请参阅加密存储引擎。- ➤
In-Memory Storage Engine内存存储引擎 An In-Memory storage engine is available in MongoDB Enterprise. Rather than storing documents on-disk, it retains them in-memory for more predictable data latencies.MongoDB Enterprise中提供了内存存储引擎。它不是将文档存储在磁盘上,而是将它们保留在内存中,以获得更可预测的数据延迟。