Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-920

Use PDO::PGSQL_ATTR_DISABLE_PREPARES

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.5
    • Component/s: Drivers
    • Security Level: All
    • Environment:
      PHP 5.6+, pdo_pgsql

      Description

      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::ATTR_EMULATE_PREPARES, but that embeds the parameters in the queries which is not recommended.

      For reference:
      https://github.com/php/php-src/pull/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

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Marco Pivetta
              Reporter:
              Matteo Beccati
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: