Add new NDV mode to analyze() command

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      New mode: "ndv" for the analyze command

      • IDL: add kNdv to the analyze mode enum. Validation: key required; sampleSize/sampleRate/numberBuckets rejected; sharded collections rejected
      • Build and run the aggregation via DBDirectClient (mirroring analyzeCommandAsAggregationCommand): $project -> $group with $_internalConstructNdvSketch (_id = the full persisted doc id) -> $project stamping schemaVersion/collectionUuid/fieldPaths/createdAt -> $merge into system.stats.ndv with whenMatched: replace.

            Assignee:
            Aaron Schüttpelz
            Reporter:
            Max Verbinnen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: