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

Frequent yielding/sleeping causes bad perf in collscan

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc0
    • Affects Version/s: None
    • Component/s: Concurrency
    • None
    • Fully Compatible
    • ALL

      Just querying for

      {x:1}

      in a database with a few thousand small records is 55% slower due to yielding after every 128 documents scanned. Part of the slowness is due to yielding after read doing a sleep.

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: