Re: [PDO] Question on Persistent PDO Connections
[email protected] (Lukas Kahwe Smith) Fri, 6 Nov 2009 21:33:00 +0100
| Newsgroups | php.pdo |
|---|---|
| Message-ID | <[email protected]> |
On 06.11.2009, at 11:24, Ulf Wendel wrote: > Lukas Kahwe Smith schrieb: >> hmm yeah .. i guess it would be tricky, since generally i think we >> should aim to let the RDBMS clean up the session as good as >> possible if persistent connections are used. > > Well, yes, as long as you leave the choice to the users. Restricting > choice will make users go for native APIs. Choice is important for > performance reasons. > > What should be considered is a sensible default. The PDO mantra > seems to be on security not on performance (otherwise I've no idea > why the broken-by-design PS emulation is in use). Therefore, I agree > with you that in general implicit clean ups are good. yes .. people that worry about performance are usually the people that are working on more advanced apps and therefore are more experienced. putting the burden on them to flip the switch makes more sense than defaulting to potentially tricky side effects and security issues. regards, Lukas Kahwe Smith [email protected]