-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
Query
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
N = 10000; if ( db.foo.count() != N ) { db.foo.drop(); for ( i=0; i<N; i++ ) db.foo.insert( { x: i } ); db.getLastError(); } db.foo.dropIndex( { x : 1 } ); printjson( db.foo.find( { x : { $gt : 0 } } ).explain() ); db.foo.ensureIndex( { x : 1 } ) printjson( db.foo.find( { x : { $gt : 0 } } ).explain() ); db.foo.ensureIndex( { x : 1 } ) printjson( db.foo.find( { x : { $gt : 0 } } , { x : 1 , _id : 0 } ).explain() );