Re: slow query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 12, 2009 at 2:59 PM, Scott Marlowe <scott.marlowe@xxxxxxxxx> wrote:
> OK, I've got a query that's running slow the first time, then fast.
> But I can't see where the time is really being spend on the first run.
>  Query and plan attached to preserve formatting.
>
> The index scan and nested loop that feed the next layer up nested loop
> both show very short run times.  Yet the nested loop they feed to
> takes 30 seconds to run.  If I run the query a second time, everything
> looks the same but the second nested loop now runs in well under a
> second.
>
> I can't figure out where my time's going to.

If it is any help, there is a nice tool to format your explain plan at
http://explain.depesz.com

-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux