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 This ports the RUM fast scan improvements we've made into our RUM clone into helio_gin and also adds improvements like: - multibitmap and, which is a strategy to instead of building multiple bitmaps on filters on multiple indexes and then intersecting them, we share the information of each of the bitmaps as they're built between them to build a single bitmap that honors all the filters. - push limit down to the index. These features where worked by @<Vinod Sridharan> and @<Dmitri Melnikov> on: https://msdata.visualstudio.com/CosmosDB/_git/pgmongo/pullrequest/1485843 Next step is to actually load helio_gin on pgmongo behind a GUC and run tests against it. ---- #### AI description (iteration 1) #### PR Classification New feature and performance improvement. #### PR Summary This pull request ports improvements to the fast scan functionality and introduces new features for the Helio Gin index. - `helio_gin/src/helioginget.c`: Added `initScanCore` and `MultiAndGetNextMatch` functions to enhance scan initialization and matching logic. - `helio_gin/src/helioginget.c`: Implemented `helio_gin_multiandgetbitmap` to handle multi-scan operations and bitmap collection. - Removed outdated functions and replaced them with optimized versions to improve performance and maintainability.