Re: Using "LIMIT" is much faster even though, searching with PK.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: 장현성 <siche(at)siche(dot)net>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Using "LIMIT" is much faster even though, searching with PK.
Date: 2004-12-01 04:26:11
Message-ID: 1390.1101875171@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

=?UTF-8?B?7J6l7ZiE7ISx?= <siche(at)siche(dot)net> writes:
> but, sequence scan, as you see above result, there is big time
> difference between using LIMIT and without using it.

You've got a table full of dead rows. Try VACUUM FULL ...

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Hyun-Sung, Jang 2004-12-01 04:38:40 Re: Using "LIMIT" is much faster even though, searching
Previous Message Iain 2004-12-01 04:18:50 Re: FW: Index usage