-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(mongodb): Change grouping strategy for arrays and
buffer
(#4186)
Couple of changes here: - Arrays in MongoDB queries were problematic for grouping, because any variant of the same query that has a different number of elements would result in an entirely **new group** being created. This resulted in high cardinality for a few orgs - Removes the 'buffer' key-value pair from queries, since this is an under the hood mechanism which has very little relevance to the query itself. This causes unnecessary noise and makes queries hard to read, so we can scrub them out entirely ### Examples ![image](https://github.com/user-attachments/assets/d360e760-413e-424e-b5f6-85b70684844b) This would become: ``` "_id": {} ``` ![image](https://github.com/user-attachments/assets/93c73cfc-a6b5-4a56-bc85-e858c31dbe21) This would become: ``` "filter": { "_id": { "$in": ["..."] } } ```
- Loading branch information
Showing
2 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters