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

Read-write ratio

The read to write ratio is often an important design consideration for MongoDB modeling. When reading data, we want to avoid scatter and gather situations, where we have to hit several shards with random I/O requests to get the data our application needs.

When writing data, on the other hand, we want to spread out writes to as many servers as possible, to avoid overloading any single one of them. These goals appear to be conflicting on the surface but they can be combined once we know our access patterns, coupled with application design considerations, like using a replica set to read from secondary nodes.

主站蜘蛛池模板: 玉树县| 肥西县| 云南省| 乌恰县| 彝良县| 西盟| 家居| 民勤县| 哈巴河县| 托里县| 怀来县| 石泉县| 钟山县| 封开县| 邵阳市| 松江区| 东莞市| 文水县| 拉萨市| 昂仁县| 彭山县| 德清县| 宜州市| 洱源县| 平阴县| 南郑县| 锡林浩特市| 通榆县| 东莞市| 金阳县| 东丽区| 灵宝市| 临高县| 历史| 康乐县| 台北县| 元朗区| 宝鸡市| 杨浦区| 浮山县| 安徽省|