Re: Top-k optimizations?

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Top-k optimizations?
Дата
Msg-id Pine.BSO.4.56.0501132302300.32384@leary.csoft.net
обсуждение исходный текст
Ответ на Top-k optimizations?  (David Fetter <david@fetter.org>)
Список pgsql-hackers

On Thu, 13 Jan 2005, David Fetter wrote:

> 3.  What kinds of top-k optimizations might (eventually) be included
> in PostgreSQL?
> 

See the TODO item:

Allow ORDER BY ... LIMIT 1 to select high/low value without sort or index 
using a sequential scan for highest/lowest values

If only one value is needed, there is no need to sort the entire table. 
Instead a sequential scan could get the matching value.

There is some discussion of this on the -general list here:


http://groups-beta.google.com/group/comp.databases.postgresql.general/messages/08c615cc2cbdf143,fe626a7cc9021d12,4f1d0575be60c26f,5c44463d8ef0e1ef,ceff42f0dae09272,dc9da98adcb6142c,7f34133e99b38825,28b43c5e79924da6,98be76099ea6513f,5d3f19a69e3b5a93?thread_id=7d35d3eb00ffd0e8&mode=thread&noheader=1&q=oleg+limit+sort#doc_7f34133e99b38825


Kris Jurka



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: FATAL: catalog is missing 1 attribute(s) for relid 16396
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Bug? 8.0 does not use partial index