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 Optimize Insert Query try to reduce call of MongoQueryFlagsWalker in INSERT PATH  ---- #### AI description (iteration 1) #### PR Classification Code optimization #### PR Summary This pull request optimizes the planner by reducing unnecessary calls to `MongoQueryFlags` during the INSERT command path. - `src/planner/documents_planner.c`: Added a condition to skip calling `MongoQueryFlags` if the command type is `CMD_INSERT`.