MongoDB DBA · 题目 414 · 多选

Consider a collection students that has been sharded using the following key: { "year": 1 } The possible values for the year field are 14, 15, 16, 17. Which of the following problems may arise after sharding on the year field? Check all that apply:

题目选项

  1. A.
    Creation of indivisible jumbo chunks.
  2. B.
    Reduced number of targeted queries.
  3. C.
    Out-of-memory errors on the size of the shard key index.

答案置信度:高

正确答案:A、B

解析语言:中文

year 只有 14~17 四个取值,基数极低:同一分片键值的文档无法被拆到两个 chunk,一旦某个年份的数据超过 chunk 上限就形成不可分裂的 jumbo chunk,各分片数据量也严重不均(A)。同时 chunk 数量上限仅 4 个,除恰好带 year 等值条件的查询外,绝大多数查询无法定位 chunk、只能广播,可定向查询的比例与收益都下降(C);B 与"分片键索引占内存"无关。

所在套题

此题在题库中有 2 条记录。公开详情合并相同题干和选项;完整公开题展示置信度最高的一条记录,其他题目仅展示摘要。按套学习保留每条记录原有的答案、解析和置信度。

作者 · 作品 · 开源

作者与 MongoDB 作品

专注数据平台、MongoDB 迁移同步与云运维产品研发。

有任何 MongoDB 需求,均可联系作者。

联系作者 ↗mlhp123@outlook.com

支持作者

如果题库对您有帮助,欢迎自愿扫码打赏。

支付宝扫码打赏作者打开打赏原图 ↗