On Thu, Aug 31, 2006 at 02:16:32PM -0400, Andrew Dunstan wrote: > According to the docs you can actually choose between server side > prepare or not on a per call basis. It contains this example:
Yeah, but it also contains this: Using prepared statements is in theory quite a bit faster: not only does the PostgreSQL backend only have to prepare the query only once, but DBD::Pg no longer has to worry about quoting each value before sending it to the server. Which just continues the misconception: you can not worry about quoting each value and still not use server-side prepares. There's a third option which is not made clear (and it's not clear if it's available via DBI). Basically, unnamed "prepares" are not planned until bind time, named statements are planned at prepare time. The question is, do you want to be able to defer planning for named statements also? Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to > litigate.
signature.asc
Description: Digital signature