[SERVER-70514] Estimate total number of arrays via type counter instead of ArrayMin Created: 13/Oct/22  Updated: 29/Oct/23  Resolved: 20/Oct/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: Timour Katchaounov Assignee: Timour Katchaounov
Resolution: Fixed Votes: 0
Labels: M2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QO 2022-10-31
Participants:

 Description   

In a number of places CE needs the total number of arrays in a document path. This has been estimated via the total number of values in an ArrayMin histogram. It turns out that this histogram contains all minimum values in arrays per each data type. This makes it incorrect to use ArrayMin.

This task will change the use of ArrayMin to the array type counter stored in ArrayHistogram.



 Comments   
Comment by Githook User [ 20/Oct/22 ]

Author:

{'name': 'Timour Katchaounov', 'email': 'timour.katchaounov@mongodb.com', 'username': 'timourk'}

Message: SERVER-70514 Estimate number of arrays via type counter
Branch: master
https://github.com/mongodb/mongo/commit/28450cf43e1c28c2bf6b75c9fdfec6ad96ad584b

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