Allow createIndexes to take "key" field as an array

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • Query
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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}]}]})
      

              Assignee:
              Backlog - Query Team (Inactive)
              Reporter:
              Scott Hernandez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: