Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-920

Use PDO::PGSQL_ATTR_DISABLE_PREPARES

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Drivers
    • Security Level: All
    • Labels:
      None
    • 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

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: