0
我在這裏添加索引:爲什麼這個mongo索引不起作用?
db.products.ensureIndex({current_features:1})
但後來它不會出現在這裏的任何影響:
db.products.find({"current_features" : {"$exists" : true}}).explain()
{
"cursor" : "BasicCursor",
"nscanned" : 20995,
"nscannedObjects" : 20995,
"n" : 2,
"millis" : 94,
"nYields" : 0,
"nChunkSkips" : 0,
"isMultiKey" : false,
"indexOnly" : false,
"indexBounds" : {
}
}