MongoDB DBA · 题目 171 · 多选

56. Which of the following are factors for fields that should influence a shard key value? Check all that apply:

题目选项

  1. A.
    High cardinality, lots of unique possible values.
  2. B.
    Low cardinality, few unique possible values.
  3. C.
    High frequency, lots of repetition of the possible values.
  4. D.
    Low frequency, only a few or no repetition of the possible values.

答案置信度:高

正确答案:A、D

解析语言:中文

理想的分片键要高基数(A:取值足够多,chunk 才能继续切分)且低频(D:同一取值重复少,不会形成热点)。低基数会导致无法再分裂的巨型 chunk(B 错),高频次会造成读写热点、负载不均(C 错)。

所在套题

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

作者 · 作品 · 开源

作者与 MongoDB 作品

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

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

联系作者 ↗mlhp123@outlook.com

支持作者

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

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