我面临着mongo表现的问题。索引会导致性能问题吗? 任何见解将不胜感激。
谢谢:)
以下是文件格式: { " _id" :" 3bb8d860-7be1-47a9-9d98-7642bd899e21", "键" :{ "电话" :[ " 9876543210&#34 ;, " 1234567890" ] "电子邮件" :[ " abc@test.com" ;, " xyz@test.com" ] }, "将MergeFlag" :真的, " decommissionedFlag" :假的, }
索引:
Below are the indexes i have on my collection:
db.collection.createIndex({"decommissionedFlag" : 1})
db.collection.createIndex({"keys.email":1})
db.collection.createIndex({"keys.phone":1})