Re: [PATCH - PR] Disable ATTR_EMULATE_PREPARES by default for PDO_Mysql
| From: | Yasuo Ohgaki | Date: | Thu, 28 Jun 2012 09:55:10 +0000 |
| Subject: | Re: [PATCH - PR] Disable ATTR_EMULATE_PREPARES by default for PDO_Mysql | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61020@lists.php.net to get a copy of this message | ||
Hi,
2012/6/28 Rasmus Lerdorf <rasmus@lerdorf.com>:
> On 06/27/2012 08:45 PM, Yasuo Ohgaki wrote:
>> Hi,
>>
>> I forgot to mention MySQL's query cache.
>> This change may have negative performance impact, since prepared
>> query is not cached and native prepared query may not be used by
>> other requests.
>
> That's not really true anymore. There are some limitations, yes, but in
> general prepared statements are cached since MySQL version 5.1.21
Good to know!
Thank you.
--
Yasuo Ohgaki