|
No indexes are updated on inserts (fast_oplog_insert does not update indexes).
> db.system.profile.ensureIndex({ns:1})
|
> db.system.profile.find({}).hint({ns:1}).explain()
|
{
|
"cursor" : "BtreeCursor ns_1",
|
"isMultiKey" : false,
|
"n" : 8,
|
... }
|
> db.system.profile.find({}).hint({ns:1}).explain()
|
{
|
"cursor" : "BtreeCursor ns_1",
|
"isMultiKey" : false,
|
"n" : 8,
|
... }
|
...
|
> db.system.profile.count()
|
12
|
...
|
> db.system.profile.count()
|
14
|
> db.system.profile.find({}).hint({ns:1}).explain()
|
{
|
"cursor" : "BtreeCursor ns_1",
|
"isMultiKey" : false,
|
"n" : 8,
|
... }
|
|