- MongoDB Administrator’s Guide
- Cyrus Dasadia
- 212字
- 2021-07-02 15:47:43
MMAPv1
MMAPv1 is quite mature and has proven to be quite stable over the years. One of the storage allocation strategies used with this engine is the power of two allocation strategy. This primarily involves storing double the amount of document space (in power of twos) such that in-place updates of documents become highly likely without having to move the documents during updates. Another storage strategy used with this engine is fixed sizing. In this, the documents are padded (for example, with zeros) such that maximum data allocation for each document is attained. This strategy is usually followed by applications that have fewer updates.
Consistency in MMAPv1 is achieved by journaling, where writes are written to a private view in memory which are written to the on-disk journal. Upon which the changes are then written to a shared view that is the data files. There is no support for data compression with MMAPv1. Lastly, MMAPv1 heavily relies on page caches and hence uses up available memory to retain the working dataset in cache thus providing good performance. Although, MongoDB does yield (free up) memory, used for cache, if another process demands it. Some production deployments avoid enabling swap space to ensure these caches are not written to disk which may deteriorate performance.
- HornetQ Messaging Developer’s Guide
- Java程序設(shè)計(jì)實(shí)戰(zhàn)教程
- Java 9 Concurrency Cookbook(Second Edition)
- Instant Apache Stanbol
- C# Programming Cookbook
- Django開(kāi)發(fā)從入門(mén)到實(shí)踐
- Java技術(shù)手冊(cè)(原書(shū)第7版)
- 深入淺出RxJS
- PHP+MySQL網(wǎng)站開(kāi)發(fā)項(xiàng)目式教程
- 程序員修煉之道:通向務(wù)實(shí)的最高境界(第2版)
- 深度學(xué)習(xí):Java語(yǔ)言實(shí)現(xiàn)
- 第一行代碼 C語(yǔ)言(視頻講解版)
- C陷阱與缺陷
- 從零學(xué)Java設(shè)計(jì)模式
- Python無(wú)監(jiān)督學(xué)習(xí)