-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
5.0The issues we want to solve in the 5.0 releaseThe issues we want to solve in the 5.0 releasebugA bug reportA bug report
Description
Hello,
In the documentation, it is written that 'persistent' is a parameter: https://docs.phalcon.io/4.0/en/db-layer#connect
As I've been tuning the code, I noticed that it doesn't really create a persistent connection. To do so, it's necessary to add
'options' => [\PDO::ATTR_PERSISTENT] => true
However, that is just an option passed to PDO. The MySQL adapter will continue to create new connections, because the adapter simply creates a connection each time it is called.
https://github.com/phalcon/cphalcon/blob/master/phalcon/Db/Adapter/Pdo/AbstractPdo.zep
This should be made clear in the documentation.
Metadata
Metadata
Assignees
Labels
5.0The issues we want to solve in the 5.0 releaseThe issues we want to solve in the 5.0 releasebugA bug reportA bug report
Type
Projects
Status
Released