CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 9: C100DEV: MongoDB Associate Developer

Given the following query:db.restaurants.find({“borough” : “Brooklyn” , “grades.score” : {$gt:5}})No index exists for the restaurant collection. What index definition most improves the performance?

Nội dung câu hỏi

Given the following query:db.restaurants.find({“borough” : “Brooklyn” , “grades.score” : {$gt:5}})No index exists for the restaurant collection. What index definition most improves the performance?

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.

  1. A. db.restaurants.createIndex({“borough” : 1, “grades.score” : 1} ) — đáp án hiện tại
  2. B. db.restaurants.createIndex({“grades.score” : 1, “borough” : 1} )
  3. C. db.restaurants.createIndex({“borough” : 1} )
  4. D. db.restaurants.createIndex({“grades.score” : 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.

Câu hỏi liền kề