Re: [PATCH - PR] Disable ATTR_EMULATE_PREPARES by default for PDO_Mysql
| From: | Rasmus Lerdorf | Date: | Fri, 17 Oct 2014 04:44:07 +0000 |
| Subject: | Re: [PATCH - PR] Disable ATTR_EMULATE_PREPARES by default for PDO_Mysql | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78125@lists.php.net to get a copy of this message | ||
On 10/16/2014 02:38 PM, Morgan Tocker wrote:
> The more clear cases would be:
> - The prepared statement is reused enough times that the initial extra round trip can be
> amortized.
> - If large place-holder values can be sent direct to the server without having to be escaped or
> parsed. For example reading a file directly into the contents of a column to insert.
Other than large batch backfill jobs it is not very common to issue the
same query enough times to overcome the connection overhead. At least
not in code I have worked with. But I am glad to see that there is work
being done on it.
-Rasmus