-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Minor - P4
-
Affects Version/s: 1.8.1
-
Component/s: Querying
-
None
-
Query Optimization
If the bson fields are in a known order then they can be mapped/loaded into the data type directly. Otherwise, you have to use a dictionary to map bson fields to object fields. Mongo could specify the order (eg. sorted) and the data type could be made to match that. Alternatively, a query with a projection (subset of fields to retrieve) can return documents with fields ordered the same as the projection.
- is duplicated by
-
SERVER-12599 When projection is present in a query, return the fields in the order of projection
- Closed
- related to
-
SERVER-2592 The fields in a document are reordered (sorted alphabetically) when setting a field value
- Closed