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)) ### Description Only generate cursorId if the query has a continuation. (seen to take ~2% backend CPU of a ycsb read workload). Also remove some functions that are long deprecated. ---- #### AI description (iteration 1) #### PR Classification Performance improvement #### PR Summary This pull request aims to improve performance in cursor generation by removing deprecated functions and related tests. - Removed deprecated cursor-related functions from `oss/pg_helio_api/src/commands/cursors.c`. - Deleted test files `pgmongo/src/test/regress/expected/pgmongo_get_cursor_page_tests.out` and `pgmongo/src/test/regress/sql/pgmongo_get_cursor_page_tests.sql`. - Updated `pgmongo/src/test/regress/expected/bson_aggregation_stage_merge_tests.out` to reflect changes in cursor ID handling. - Added deprecation error messages for cursor-related functions in `pgmongo/src/function_stubs.c`.