mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Perf ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) - Push Aggregation queries directly to shard if the collection is unsharded in a single node and pipeline stages refer only 1 collection ### Description Push Aggregation queries directly to shard if the collection is unsharded in a single node and pipeline stages refer only 1 collection ---- #### AI description (iteration 1) #### PR Classification Performance improvement #### PR Summary This pull request optimizes the aggregation pipeline by pushing aggregates directly to shards for unsharded tables in a single node setup. - Added tests in `bson_aggregation_pipeline_tests.out` to verify the new optimization for unsharded collections. - Updated `bson_aggregation_pipeline_tests.out` in both `pg_helio_distributed` and `helio_compat` to include new test cases and EXPLAIN plans demonstrating the performance improvements.