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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Do
    • None
    • None
    • None
    • None
    • ALL
    • Query Execution 2021-07-12
    • 19

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              backlog-query-execution Backlog - Query Execution
              arun.banala@mongodb.com Arun Banala
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: