Sharded write commands should evaluate 'let' parameter once

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2023-11-27, QE 2023-12-11, QE 2023-12-25
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Write commands that take 'let' parameters should ensure those expressions are evaluated once, instead of once per shard. For example, in a multi-update you should be able to use {let: {r: {$rand: {}}}} to pick a single random value and use it consistently when updating each document.

      SERVER-75927 fixes this for the 'find' command.

            Assignee:
            Mihai Andrei
            Reporter:
            David Percy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: