-
Type: Task
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: None
-
Component/s: Index Maintenance
-
None
the ensureIndex changes the output, which is bad.
not sure what should be correct, but having an index shouldn't change output.
db.foo.drop()
db.foo.save( { a : [
] } )
db.foo.save( { a : [
] } )
db.foo.save( { a : [
] } )
db.foo.ensureIndex(
)
db.foo.find().sort(
).forEach( printjson );
- related to
-
SERVER-8152 aggregation array sort differs from query/index array sort; causes aggregation results to change depending on sort optimizations
- Closed
-
SERVER-429 btree change (Sorting and other) master case
- Closed
-
SERVER-19402 Change semantics of sorting by array fields in find and aggregate
- Closed