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

don't create field range for $atomic

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.3.0
    • None
    • Querying
    • None
    • ALL

    Description

      The queryutil code doesn't know about $atomic, so an operation with the query

      { a:1, $atomic:true }

      will be treated in queryutil like

      { a:1, b:1 }

      . Because of the extra field, the query optimizer won't create an optimal plan on index

      { a:1 }

      and will instead try both

      { a:1 }

      and

      { $natural:1 }

      .

      Attachments

        Activity

          People

            aaron Aaron Staple
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: