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

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.8.4, 2.0.2
    • 2.0.3, 2.1.1
    • Sharding
    • None
    • 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

              spencer@mongodb.com Spencer Brody (Inactive)
              spencer@mongodb.com Spencer Brody (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: