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

don't create field range for $atomic

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.3.0
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • ALL

      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 }

      .

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

              Created:
              Updated:
              Resolved: