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

Treat "partitionBy" null as equivalent to no partitioning

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Query Optimization 2021-03-22

      The current desugaring code optimizes the generated pipelines for simple field path partitions, but not for constants. We should not generate a preceding $set (and maybe $sort if there's no sortBy) for such a case.

            Assignee:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: