[SERVER-44869] Add query knob to control memory limit for $push and $addToSet Created: 27/Nov/19 Updated: 29/Oct/23 Resolved: 03/Dec/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.17, 4.2.3, 4.0.14, 4.3.3 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Charlie Swanson | Assignee: | Charlie Swanson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | qopt-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Backport Requested: |
v4.2, v4.0, v3.6, v3.4
|
||||||||||||||||||||
| Sprint: | Query 2019-12-02, Query 2019-12-16 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||
| Description |
|
InĀ |
| Comments |
| Comment by Danny Hatcher (Inactive) [ 15/Jan/20 ] |
|
This patch adds two new server parameters: internalQueryMaxPushBytes and internalQueryMaxAddToSetBytes. Both default to 100MB (100 * 1024 * 1024) and can be used to control the amount of memory we're willing to accumulate in a single array when using $push or $addToSet in aggregation. |
| Comment by Githook User [ 10/Dec/19 ] |
|
Author: {'email': 'charlie.swanson@mongodb.com', 'name': 'Charlie Swanson', 'username': 'cswanson310'}Message: (cherry picked from commit f7d0d2f3d6fe9e4c472bd1d8893c8b6dc96881b6) |
| Comment by Githook User [ 09/Dec/19 ] |
|
Author: {'name': 'Charlie Swanson', 'username': 'cswanson310', 'email': 'charlie.swanson@mongodb.com'}Message: (cherry picked from commit f7d0d2f3d6fe9e4c472bd1d8893c8b6dc96881b6) |
| Comment by Githook User [ 09/Dec/19 ] |
|
Author: {'name': 'Charlie Swanson', 'username': 'cswanson310', 'email': 'charlie.swanson@mongodb.com'}Message: (cherry picked from commit f7d0d2f3d6fe9e4c472bd1d8893c8b6dc96881b6) |
| Comment by Githook User [ 03/Dec/19 ] |
|
Author: {'email': 'charlie.swanson@mongodb.com', 'name': 'Charlie Swanson', 'username': 'cswanson310'}Message: |