-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
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
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.
- related to
-
SERVER-75927 Shards see different values for 'let' parameter when using $rand
- Closed
-
SERVER-48905 Allow $rand in command-level 'let'
- Closed