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

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.

主站蜘蛛池模板: 蓬安县| 万载县| 德庆县| 武平县| 南投市| 栾川县| 淮安市| 商水县| 武功县| 和龙市| 凤冈县| 太原市| 崇仁县| 高安市| 潢川县| 延长县| 英吉沙县| 丰台区| 通辽市| 上高县| 招远市| 东阿县| 盱眙县| 安义县| 通化市| 呼伦贝尔市| 克什克腾旗| 乌拉特后旗| 通州区| 新余市| 安平县| 泸水县| 塘沽区| 深圳市| 新乐市| 大同县| 黄梅县| 徐州市| 绵阳市| 四子王旗| 德钦县|