Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15754

Allow createIndexes to take "key" field as an array

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 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}]}]})
      

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

              Created:
              Updated:
              Resolved: