mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? Yes ### 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? Yes ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description Improve the consistent function performance for $in in the index. ---- #### AI description (iteration 1) #### PR Classification Performance improvement #### PR Summary This pull request improves the performance of index pushed down large `$in` queries by introducing a fast path for certain conditions. - `bson_gin_core.c`: Added a fast path for `$in` queries without truncation, nulls, or regex. - `feature_flag_configs.c`: Introduced a new feature flag `EnableRumInOperatorFastPath`. - Updated regression tests in `regex.sql` and `regex.out` to include scenarios for the new fast path feature. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->