|
for instance:
> db.point_data.explain().aggregate([{$match: {"time":{$lt:ISODate("2016-01-01T00:00:00Z")}}}])
|
"winningPlan" :
|
{ "stage" : "COLLSCAN",
|
"filter" : { "$and" : [
|
{ "_id" : { "$lt" : ObjectId("5685c1800000000000000000") } },
|
{ "_id" : { "$lt" : ObjectId("5685c1800000000000000000") } },
|
{ "control.min.time" : { "$_internalExprLt" : ISODate("2016-01-01T00:00:00Z") } },
|
{ "control.min.time" : { "$_internalExprLt" : ISODate("2016-01-01T00:00:00Z") } } ] },
|
"direction" : "forward"},
|
The pushed filter is still valid, maybe not that performant and it is probably unintended behaviour
|