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

Frequent yielding/sleeping causes bad perf in collscan

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0-rc0
    • Component/s: Concurrency
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            geert.bosch Geert Bosch
            Reporter:
            geert.bosch Geert Bosch
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: