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 ---- #### AI description (iteration 1) #### PR Classification Performance improvement for string aggregation operations. #### PR Summary This pull request refactors and optimizes string aggregation operations, focusing on performance improvements. - Removed redundant functions and added new parsing and handling functions for `$regexFind`, `$regexMatch`, and `$regexFindAll` in `bson_expression_string_operators.c`. - Refactored existing string operations like `$concat`, `$toUpper`, `$toLower`, `$strLenBytes`, `$strLenCP`, `$split`, `$trim`, `$ltrim`, and `$rtrim` to use a more efficient parsing and handling framework in `bson_expression_string_operators.c`. - Introduced helper functions for parsing and evaluating string operators with one, two, and three operands in `bson_expression_string_operators.c`. Related work items: #3458666