MongoDB DEV · 题目 221 · 多选

Compared with a single-field index, a compound index: Check all that apply:

题目选项

  1. A.
    can be more selective, examining fewer documents in order to fulfill search criteria.
  2. B.
    allows for covered queries more often than a single-field index.
  3. C.
    can be used just like a single-field index on the first field of the index.

答案置信度:高

正确答案:A、B、C

解析语言:中文

复合索引字段更多,通常选择性更强、能用索引边界筛掉更多文档(A);索引中包含的字段越多,越容易满足"查询过滤与投影字段全在索引里"的覆盖查询(B);按最左前缀原则,它也能当首字段的单字段索引来用(C)。所以三项都成立。

所在套题

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

作者 · 作品 · 开源

作者与 MongoDB 作品

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

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

联系作者 ↗mlhp123@outlook.com

支持作者

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

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