Skip to content

Loading…

DBAL-920: Use PDO::PGSQL_ATTR_DISABLE_PREPARES #2162

Closed
doctrinebot opened this Issue · 1 comment

2 participants

@doctrinebot

Jira issue originally created by user mbeccati:

The new pgsql specific PDO attribute has been added in PHP 5.6+ to speed up queries that are going not going to be executed many times once prepared, by skipping the actual PQprepare round trip to the database.

The same goal can be achieved with PDO::ATTREMULATEPREPARES, but that embeds the parameters in the queries which is not recommended.

For reference:
php/php-src#619

I'll try to see if I have time to dig into doctrine2 and create a pull request, but I wanted to create a ticket before I forget ;)

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label
@Ocramius Ocramius was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.5 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.