don't create field range for $atomic

XMLWordPrintableJSON

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

      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 Staple (Inactive)
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: