Re: [PDO] Question on Persistent PDO Connections
[email protected] (Ulf Wendel) Fri, 06 Nov 2009 11:13:41 +0100
| Newsgroups | php.pdo |
|---|---|
| Message-ID | <[email protected]> |
Lukas Kahwe Smith schrieb: > well for mysql traditonally persistent connections came with the risk of > an unclean session. i guess there is now a solution to clean up the > session fairly well, making persistent connections more feasible, COM_CHANGE_USER/mysql_change_user() cleans up the line. The call itself exists since quite some time. In its early days (say more than three years ago) it was known to have issues. But its working fine nowadays. Its possible to clean up the line before reuse, if wanted. Calling mysql_change_user is the default for ext/mysqli. However, if you know what you do, you may not want to clean the line for performance reasons. Ulf