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

Refactor targetUpdate and targetDelete to check if a query should use the two phase write protocol

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Sharding NYC 2023-06-26, Sharding NYC 2023-07-10, Sharding NYC 2023-07-24, Sharding NYC 2023-08-07
    • 105

    Description

      Currently there exists a supplementary helper that checks whether or not we need to use the two phase write protocol for a write without a shard key. This helper re-parses the query into a CanonicalQuery, which adds undesirable overhead to write operations. This check can likely be done in targetUpdate()/targetDelete() directly so we don't incur this excess latency.

      Attachments

        Activity

          People

            jason.zhang@mongodb.com Jason Zhang
            jason.zhang@mongodb.com Jason Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: