Skip site navigation (1) Skip section navigation (2)

Re: Query only slow on first run

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: cluster <skrald(at)amossen(dot)dk>
Cc: "Steinar H(dot) Gunderson" <sgunderson(at)bigfoot(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Query only slow on first run
Date: 2007-11-28 22:24:24
Message-ID: 24967.1196288664@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-performance
cluster <skrald(at)amossen(dot)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

In response to

Responses

pgsql-performance by date

Next:From: Scott MarloweDate: 2007-11-29 06:49:41
Subject: Re: Query only slow on first run
Previous:From: Jean-David BeyerDate: 2007-11-28 22:03:29
Subject: Re: Query only slow on first run

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group