[SERVER-55217] Treat "partitionBy" null as equivalent to no partitioning Created: 15/Mar/21  Updated: 29/Oct/23  Resolved: 18/Mar/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Improvement Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query Optimization 2021-03-22
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 18/Mar/21 ]

Author:

{'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-55217 Treat partitionBy constant as equivalent to no partitioning
Branch: master
https://github.com/mongodb/mongo/commit/a892a728ed8261d2af658b68d3aa06c697bee787

Generated at Thu Feb 08 05:35:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.