原文地址:https://docs.mongodb.com/manual/release-notes/3.2/
New Storage Engines
inMemory Storage Engine
ENTERPRISE FEATURE
Available in MongoDB Enterprise only.
MongoDB Enterprise 3.2 provides an in-memory storage engine. Other than some metadata, the in-memory storage engine does not maintain any on-disk data. By avoiding disk I/O, the in-memory storage engine allows for more predictable latency of database operations.
To select this storage engine, specify
- inMemory for the --storageEngine option or the storage.engine setting.
- --dbpath. Although the in-memory storage engine does not write data to the filesystem, it maintains in the --dbpath small metadata files and diagnostic data as well temporary files for building large indexes.
The inMemory storage engine uses document-level locking. For more details, see In-Memory Storage Engine.
ephemeralForTest Storage Engine
MongoDB 3.2 provides a new for-test storage engine. Other than some metadata, the for-test storage engine does not maintain any on-disk data, removing the need to clean up between test runs. The for-test storage engine is unsupported.
WARNING
For test purposes only. Do not use in production.
To select this storage engine, specify
- ephemeralForTest for the --storageEngine option or the storage.engine setting.
- --dbpath. Although the for-test storage engine does not write data to the filesystem, it maintains small metadata files in the --dbpath.
The ephemeralForTest storage engine uses collection-level locking.