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

do not allow _id scans on capped collections

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • Query Execution

    Description

      _id indexes are not created on capped collections by default.
      Very often people don't realize or forget and assume it's there, or use methods like save() which assume.

      We should assert on any table scan where the query is

      { _id : ... }

      .

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            eliot Eliot Horowitz (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: