Operator to generate random object ids

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There is no way to generate a random object id in a query without a shell helper (e.g. if you want to write your query as JSON). We should have some aggregation operator, e.g. something like $oid, to randomly generate an object id.

      Relevant for working around an issue like SERVER-106347.

              Assignee:
              Sander Verwimp
              Reporter:
              Alya Berciu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: