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

Creating descending _id index should result in error

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Index Maintenance
    • Labels:
      None

      Description

      Since as far back as version 1.8, requests to create an {_id: -1} index have been treated as if they were requests to create an {_id: 1} index. These requests should return an error to the user instead of being silently treated as a different request.

      See also SERVER-14128 ("Creating _id index with unique:false should result in error").

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-optimization Backlog - Query Optimization
              Reporter:
              rassi J Rassi
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: