-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Index Maintenance
-
None
-
Query
Allowing the key field to be an array will remove the ordering issues in many languages, and the shell.
Example:
db.a.ensureIndex([{field1:1}, {field2:1}])
db.a.runCommand("createIndexes", {indexes:[{ns:..., key:[{field1:1}, {field2:1}]}]})
- is related to
-
SERVER-15753 Compound index is reordered automatically when used with numerical field keys
- Closed
-
MONGOSH-1037 Numeric field are sorted to the front (js shell)
- Closed
-
SERVER-1627 add createIndexes command
- Closed
- related to
-
SERVER-21888 Provide operation to determine if an index exists
- Closed