Support PDO::ATTR_PERSISTENT

Created on 3 March 2011, over 13 years ago
Updated 23 February 2024, 7 months ago

Is there a reason for not supporting PDO::ATTR_PERSISTENT when calling PDO::__construct? I guess this will affect performance only if DB is not @localhost because TCP handshaking adds extra latency. On the other hand, too many idle persistent connections to a DB may hit some limit in the DB. It's best to have ability to configure this in settings.php.

Feature request
Status

Active

Version

11.0 🔥

Component
Database 

Last updated less than a minute ago

  • Maintained by
  • 🇳🇱Netherlands @daffie
Created by

🇧🇬Bulgaria ogi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇷🇺Russia Chi

    shows 75 requests/sec, with persistent connections enabled it shows 90 requests/sec

    What Drupal does should be good enough

    These two statements contradicts each other.

    PostreSQL connection is relatively slow especially when SSL is enabled (that's done by default in many distributions). When page cache is enabled it may happened that ~80% of request time for anonymous visitors is spent on establishing DB connection.

    I think it worth reopening.

Production build 0.71.5 2024