Re: Query only slow on first run - Mailing list pgsql-performance

From Tom Lane
Subject Re: Query only slow on first run
Date
Msg-id 24967.1196288664@sss.pgh.pa.us
Whole thread Raw
In response to Re: Query only slow on first run  (cluster <skrald@amossen.dk>)
Responses Re: Query only slow on first run  (cluster <skrald@amossen.dk>)
List pgsql-performance
cluster <skrald@amossen.dk> writes:
> I could really use any kind of suggestion on how to improve the query in
> order to make it scale better for large data sets The 6-7000 ms for a
> clean run is really a showstopper. Need to get it below 70 ms somehow.

Buy a faster disk?

You're essentially asking for a random sample of data that is not
currently in memory.  You're not going to get that without some I/O.

            regards, tom lane

pgsql-performance by date:

Previous
From: Jean-David Beyer
Date:
Subject: Re: Query only slow on first run
Next
From: "Scott Marlowe"
Date:
Subject: Re: Query only slow on first run