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" : {
}
}