Operator to generate random object ids

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • 3
    • TBD
    • 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:
            Unassigned
            Reporter:
            Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: