Re: slow query - Mailing list pgsql-performance

From Gregory Williamson
Subject Re: slow query
Date
Msg-id 8B319E5A30FF4A48BE7EEAAF609DB233021F399C@COMAIL01.digitalglobe.com
Whole thread Raw
In response to slow query  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-performance

Scott Marlowe 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.

Often this is from caching -- the first time the system has to go to disk to get the values; the subsequent times the data (and indexes, presumably) are all in RAM and so much faster.

Is this plausible ?

Greg Williamson
Senior DBA
DigitalGlobe

Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information and must be protected in accordance with those provisions. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

(My corporate masters made me say this.)

pgsql-performance by date:

Previous
From: "Scott Marlowe"
Date:
Subject: slow query
Next
From: Gregory Stark
Date:
Subject: Re: slow query