mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) ### Are you introducing any new config? If yes, do you have tests with and without them being set? ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Improve group performance with large docs ---- #### AI description (iteration 1) #### PR Classification Performance improvement #### PR Summary This pull request aims to improve the performance of group operations with large documents. - `bson_aggregation_pipeline_tests_facet_group.out`: Added new test cases to validate performance improvements in group operations. - `bson_aggregation_pipeline_tests_bucket.out`: Updated test cases to reflect changes in group and bucket operations. - `bson_aggregation_pipeline.c`: Introduced a new function `GetDocumentExprForGroupAccumulatorValue` to optimize group accumulator expressions by evaluating constants statically. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->