Re: Multiple Order By Criteria

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Multiple Order By Criteria
Дата
Msg-id 20060117143952.D47156@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: Multiple Order By Criteria  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-performance
On Tue, 17 Jan 2006, Josh Berkus wrote:

> J,
>
> > I have an index built for each of these columns in my order by clause.
> > This query takes an unacceptable amount of time to execute. Here are the
> > results of the explain:
>
> You need a single index which has all five columns, in order.

I think he'll also need a reverse opclass for the first column in the
index or for the others since he's doing desc, asc, asc, asc, asc.

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

Предыдущее
От: J@Planeti.Biz
Дата:
Сообщение: Re: Multiple Order By Criteria
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Autovacuum / full vacuum