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

XMLWordPrintableJSON

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

      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 Brody (Inactive)
              Reporter:
              Spencer Brody (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: