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

Creating descending _id index should result in error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Index Maintenance
    • None
    • Query Optimization

    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

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

              Dates

                Created:
                Updated: