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

Use of $isolated inhibits query by id runner selection

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

      Run an _id query driven workload under 'perf top', and notice the IDHackRunner in the output. Re-run with $isolated, and note that the IDHackRunner goes away, and the QueryPlanner::plan function appears. Also, if you measure throughput, it is noticeably slower.

      Show
      Run an _id query driven workload under 'perf top', and notice the IDHackRunner in the output. Re-run with $isolated, and note that the IDHackRunner goes away, and the QueryPlanner::plan function appears. Also, if you measure throughput, it is noticeably slower.

      Normally, a query like

      { _id : 1 }

      will be routed to the "id hack" query runner. However, if the query is marked isolated with

      { _id : 1, $isolated : 1 }

      , then the query execution is routed through QueryPlanner::plan, rather than redirected to the id hack runner, which greatly reduces performance.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: