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? ### 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