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

Figuring out which shard to send a query to takes a long time when doing large $in queries on the shard key

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.8.4, 2.0.2
    • Fix Version/s: 2.0.3, 2.1.1
    • Component/s: Sharding
    • Labels:
      None
    • Operating System:
      ALL

      Description

      The problem seems to be in ChunkManager::getShardsForQuery in chunk.cpp. Seems to do n^2 comparisons to figure out where to send the queries.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              spencer Spencer Brody (Inactive)
              Reporter:
              spencer Spencer Brody (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: