Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the unnamed prepared statement for
Pgx.execute
The unnamed prepared statement is optimized differently, assuming the query will only be executed once (which is what Pgx.execute does): https://www.postgresql.org/docs/current/static/protocol-overview.html#PROTOCOL-QUERY-CONCEPTS > In addition, an “unnamed” prepared statement and portal exist. > Although these behave largely the same as named objects, operations > on them are optimized for the case of executing a query only once > and then discarding it, whereas operations on named objects are > optimized on the expectation of multiple uses.
- Loading branch information