Files
documentdb/pg_helio_api/include/infrastructure
Parag Jain 07a4125ae5 Merged PR 1469364: [Perf] Delete directly from shard in delete one if available
### 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
Delete directly from shard in delete one if available

----
#### AI description  (iteration 1)
#### PR Classification
Code cleanup and deprecation.

#### PR Summary
This pull request deprecates the `command_delete_one` function and refactors the deletion logic to directly delete from shards if available.
- `oss/pg_helio_api/src/commands/delete.c`: Deprecated `command_delete_one` function and refactored deletion logic to use shard-specific tables.
- `oss/pg_helio_api/src/test/regress/expected/commands_delete.out` and `oss/pg_helio_api/src/test/regress/sql/commands_delete.sql`: Removed tests for the deprecated function and updated tests to use `find_and_modify` with the remove option.
- Deleted `pgmongo/src/test/regress/expected/commands_delete.out` and `pgmongo/src/test/regress/sql/commands_delete.sql` as they are no longer needed.
2024-10-03 10:48:48 +03:00
..