官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 静安区| 洛川县| 阿克苏市| 吴江市| 阳春市| 沛县| 措美县| 鄂尔多斯市| 镇雄县| 达拉特旗| 鄄城县| 忻城县| 边坝县| 永平县| 甘孜| 塔城市| 徐汇区| 石林| 白水县| 凌云县| 湘乡市| 龙岩市| 朔州市| 民乐县| 雷波县| 阳信县| 蛟河市| 沙雅县| 治多县| 石景山区| 徐州市| 收藏| 班戈县| 四平市| 溆浦县| 高碑店市| 来宾市| 乌兰察布市| 安新县| 墨竹工卡县| 蓬莱市|