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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.3, 2.1.1
    • Affects Version/s: 1.8.4, 2.0.2
    • Component/s: Sharding
    • None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: