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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: 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
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Jason Zhang (Inactive)
            Reporter:
            Jason Zhang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: