CakeDC / cakephp-oracle-driver

CakePHP 3 Driver for Oracle Database
Other
40 stars 24 forks source link

Persistence ? #12

Closed hanuka closed 8 years ago

hanuka commented 8 years ago

Does it have a persistance parameter ? I would like to leave the connection to the database opened.

skie commented 8 years ago

If you set persistent param as true you got persistenace. In case of oci8 driver documentation says:

Connecting to an Oracle server is a reasonably expensive operation in terms of the time that it takes to complete. The oci_pconnect() function uses a persistent cache of connections that can be re-used across different script requests. This means that the connection overhead will typically only occur once per PHP process (or Apache child).

Same would work if you use PHP-FPM.