Re: Re: Secure data management
| From: | Stuart Dallas | Date: | Wed, 05 Oct 2011 01:19:01 +0000 |
| Subject: | Re: Re: Secure data management | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315147@lists.php.net to get a copy of this message | ||
On 5 Oct 2011, at 02:16, Jeremiah Dodds wrote:
> On Tue, Oct 4, 2011 at 8:10 PM, Stuart Dallas <stuart@3ft9.com> wrote:
>> Prepared statements incur an additional hit against the DB server to prepare the statement.
>
> But only once, right? This could, of course, still be a downside
> depending the nature of your app.
Once per statement per request, yes. Most web apps execute one-off statements during each request,
so the ability to reuse a prepared statement is not a helpful feature for that environment.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/