[SERVER-45450] Improve the performance of $accumulator Created: 09/Jan/20  Updated: 29/Oct/23  Resolved: 17/Mar/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Task Priority: Major - P3
Reporter: David Percy Assignee: David Percy
Resolution: Fixed Votes: 0
Labels: qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-45447 Implement $accumulator Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Query 2020-02-24, Query 2020-03-09, Query 2020-03-23
Participants:
Linked BF Score: 0

 Description   

We think it will be more valuable to improve the performance of $accumulator, than to change the implementation of MapReduce to use it internally.

Previous title and description:

Use $accumulator in MapReduce pipelines

Change how MapReduce generates its aggregation pipeline: use $accumulator instead of $_internalJsReduce. Then remove $_internalJsReduce.

We will have decided how to do the translation in the POC: SERVER-45446



 Comments   
Comment by Githook User [ 20/Mar/20 ]

Author:

{'name': 'David Percy', 'username': 'dpercy', 'email': 'david.percy@mongodb.com'}

Message: SERVER-45450 $accumulator performance
Branch: v4.4
https://github.com/mongodb/mongo/commit/02e12f2b4acfb8f1d401ed78a04fe4b6e23b9976

Comment by Githook User [ 17/Mar/20 ]

Author:

{'email': 'gregory.wlodarek@mongodb.com', 'name': 'Gregory Wlodarek', 'username': 'GWlodarek'}

Message: SERVER-45450 Fix lint
Branch: master
https://github.com/mongodb/mongo/commit/13caf3c499a22c2274bd533043eb7e06e6f8e8a4

Comment by Githook User [ 17/Mar/20 ]

Author:

{'name': 'David Percy', 'username': 'dpercy', 'email': 'david.percy@mongodb.com'}

Message: SERVER-45450 $accumulator performance
Branch: master
https://github.com/mongodb/mongo/commit/fadc3d1cd88084567e24559f75b216158186bde8

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