Files
documentdb/pg_documentdb
Parag Jain 6dc1299623 Merged PR 1655272: [FIX] Write Procedure fixes & Enable enableWriteProcedures in pipeline.
### 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?

### ChangeLog (Refer [Template](../oss/CHANGELOG.md))

### Description
Enabling pgmongo.enableWriteProcedures  In pipeline with fixing issue.
If maxTimeMS is provided we should not run write procedure instead we should use write functions.

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix to improve high concurrency write performance.

#### PR Summary
This pull request addresses performance issues related to high concurrency updates by enabling write procedures and refining transaction handling.
- In `PostgresClient.cs`, added a condition to check for `CommandTimeout` before executing requests with write procedures.
- In `utils.sh`, enabled the `pgmongo.enableWriteProcedures` configuration to support the use of write procedures.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->

Related work items: #4093126
2025-04-30 14:57:09 +08:00
..