MongoDB DBA · 题目 19 · 多选

19. Consider the following document from the system.profile collection: { "op": "insert", "ns": "products.toys", "command": { "insert": "toys", "ordered": true, "$db": "products" }, "ninserted": 20, "keysInserted": 40, "millis" : 2, ... } This document describes a single operation that was captured by a profiler with level 1. Which of the following must be true? Check all that apply:

题目选项

  1. A.
    The slowms value was changed from the default.
  2. B.
    The toys collection has been sharded.
  3. C.
    There were 20 documents inserted by this operation.

答案置信度:高

正确答案:A、C

解析语言:中文

ninserted: 20 直接说明这条操作插入了 20 个文档(C);profiling level 1 只记录慢于 slowms 的操作,默认 slowms=100ms,而这条只用了 2ms 却被记录,说明 slowms 已被改小(A)。keysInserted: 40 只是写入的索引键条数,与集合是否分片无关(B 错)。

所在套题

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

作者 · 作品 · 开源

作者与 MongoDB 作品

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

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

联系作者 ↗mlhp123@outlook.com

支持作者

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

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