[php-src] PR #13225: pgsql pipeline mode
| From: | degtyaryov | Date: | Tue, 23 Jan 2024 12:01:47 +0000 |
| Subject: | [php-src] PR #13225: pgsql pipeline mode | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24873@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13225
Author: degtyaryov
Hello.
I previously made a pool request https://github.com/php/php-src/pull/12731
For obvious reasons, this code could not be included in the release PHP-8.3 https://github.com/php/php-src/pull/12735
I haven't changed anything in the code since then. I moved the code to a separate branch.
I've been using the code in production for over a month, but without using pipeline mode.
I've been using pipeline mode in production for 2 weeks now.
So far I haven't found any problems!
I used pipeline mode:
to speed up the execution of consecutive SQL queries of different result format, which are
problematic to combine into one SQL query;
to reduce the load on the database server using pg_send_prepare + pg_send_execute + pgbouncer(with
enabled max_prepared_statements) for frequently used SQL queries. SQL query is also sent by 1 TCP
package, no network latency, but server PostgreSQL gets only execute SQL query by name, without
prepare.
>
>https://github.com/php/php-src/pull/13223#issuecomment-1905729362
> the changes needs to be applied from an up-to-date master branch. Take your time tough, we won
> t be merging it quickly.
Merged to master branch.