[SERVER-67852] Partial statistics pipeline Created: 07/Jul/22  Updated: 29/Oct/23  Resolved: 18/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Joel Redman (Inactive) Assignee: Misha Tyulenev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-68748 Move analyze testing out of core and ... Closed
Duplicate
is duplicated by SERVER-67361 Extend analyze command to generate co... Closed
Backwards Compatibility: Fully Compatible
Sprint: QO 2022-07-25, QO 2022-08-08, QO 2022-08-22, QO 2022-09-05, QO 2022-09-19, QO 2022-10-03
Participants:

 Description   

Generate an internal SBE command for statistics analysis which runs the equivalent of 

 

 

db.coll.aggregate( [
   { $project: {val : path} },
   { $_analyzeInternal: {} },
   { $merge: ... }
]);

 
_analyzeInternal will be implemented in a follow-on ticket. For now it can simply consume values and emit an empty document at the end of the stream.

The $merge is to replace (or insert) the value in the stats collection with the newly calculated value. Note that this requires a unique index on "path" which should be workable.



 Comments   
Comment by Githook User [ 16/Sep/22 ]

Author:

{'name': 'samontea', 'email': 'merciers.merciers@gmail.com', 'username': 'samontea'}

Message: SERVER-67852 Partial statistics pipeline
Branch: master
https://github.com/mongodb/mongo/commit/1c2564b0507c3695d37dcc321a18b406ffc7c6e6

Comment by Sam Mercier [ 16/Sep/22 ]

misha.tyulenev@mongodb.com this is approved and on the commit queue but may not land before i leave. this ticket tracks just finishing that process up

Generated at Thu Feb 08 06:09:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.