Re: Critical performance problems on large databases - Mailing list pgsql-general

From Oleg Bartunov
Subject Re: Critical performance problems on large databases
Date
Msg-id Pine.GSO.4.44.0204112129490.2819-100000@ra.sai.msu.su
Whole thread Raw
In response to Re: Critical performance problems on large databases  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
On Thu, 11 Apr 2002, Bruce Momjian wrote:

> Oleg Bartunov wrote:
> > The big issue with LIMIT,OFFSET is that it still use all rows
> > for sorting. I already suggested to use partial sorting to avoid
> > sorting all rows if one selected only first 20 row, for example.
> > It's very important for Web applications because web users usually
> > read first 1-2 pages. Our experimnets have shown 6 times performance
> > win when using partial sorting.
>
> We do have this TODO item:
>
>     * Allow ORDER BY ... LIMIT to select top values without sort or index
>       using a sequential scan for highest/lowest values
>

looks too complex to me :-) I like partial sorting, but it's not
important.


>

    Regards,
        Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Critical performance problems on large databases
Next
From: Oleg Bartunov
Date:
Subject: Re: Critical performance problems on large databases