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

Mongos executes the write commands targeting logic twice per request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • 3.6.1
    • None
    • Sharding
    • Sharding
    • ALL

    Description

      For every batch write request executed, mongos once targets the entire collection and then performs the regular shard key based logic. Note that this is just the targeting logic, it's not executing the actual request. This seems to only be done in order to find out if any of the writes are going against the config server.

      Since executing the targeting logic is somewhat expensive, this can be avoided by setting the shard version to IGNORED in WriteOp::targetWrites instead.

      Attachments

        Activity

          People

            backlog-server-sharding Backlog - Sharding Team
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: