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

Allow compound indexes using single elements from multiple arrays

    • Query Optimization

      MongoDB currently disallows compound indexes whose components are single array elements selected by position from multiple arrays.

      However, MongoDB does allow compound indexes whose components are single array elements selected by position from a single array. Furthermore, the resulting index is not multiKey.

      Given that neither of these indexes should be multiKey, the check for multiple arrays at https://github.com/mongodb/mongo/blob/r2.4.8/src/mongo/db/indexkey.cpp#L232 may be a little too restrictive.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            norman.graham@mongodb.com Norman Graham (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: