Câu 25: C100DEV: MongoDB Associate Developer
Given a sample collection called collection, in which all documents have the following shape:{_id:1,a:{b:[1,2,3],c:”example”}}And the following query:db.collection.find({“a.b”:2})Which two indexes will improve the performance of that query? (Choose two.)
Nội dung câu hỏi
Given a sample collection called collection, in which all documents have the following shape:{_id:1,a:{b:[1,2,3],c:”example”}}And the following query:db.collection.find({“a.b”:2})Which two indexes will improve the performance of that query? (Choose two.)
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. {“a.b”:1,“a.c”:1} — đáp án hiện tại
- B. {a:1}
- C. {“a,c”:1,“a.b”:1}
- D. {“a.b”:1} — đáp án hiện tại
- E. {a: 1, b: 1}
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.