Re: [PERFORM] Perl Binding affects speed?

2011-02-25 Thread Martin Kjeldsen
On 25/02/2011, at 13.25, Marti Raudsepp wrote: > On Fri, Feb 25, 2011 at 05:02, Sam Wong wrote: >> * But if I do this - using binding: >> $dbh->selectall_arrayref("SELECT * from shipment_lookup WHERE (UPPER(lookup) >> LIKE ?)", undef, '0GURG5YGVQA9%'); >> It took 10 seconds to finish the query,

[PERFORM] Aggregate weirdness

2008-11-04 Thread Martin Kjeldsen
Hi, I have a small problem. I have one view which sum's a another tables field and uses that sum for several things including filtering. Every time it uses the that summarised field in other queries or views, the planner seems to duplicate the SUM. Isn't it possible for the planner only to do t

[PERFORM] Bad prepare performance

2008-03-31 Thread Martin Kjeldsen
placeholders in the statement), but that is not the prettiest of work arounds. Is there any planner hints I can use or anything happened or happening with 8.3 or later that I can use? Thank you in advance and the following is the EXPLAIN ANALYZE for the queries. Best regards Martin Kjeldsen -