Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-57860

$sampleFromRandomCursor should fallback to using a collection scan when random cursor returns too many duplicate

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • ALL
    • Query Execution 2021-07-12
    • 19

      The current logic of $sampleFromRandomCursor is to throw a uassert when the random cursor returns too many (100) duplicate records. We should instead fallback to using a collection scan in this case.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            arun.banala@mongodb.com Arun Banala
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: