Re: cost of CREATE VIEW ... AS SELECT DISTINCT

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: cost of CREATE VIEW ... AS SELECT DISTINCT
Дата
Msg-id 20050329150710.GB32031@wolff.to
обсуждение исходный текст
Ответ на Re: cost of CREATE VIEW ... AS SELECT DISTINCT  (T E Schmitz <mailreg@numerixtechnology.de>)
Список pgsql-sql
On Tue, Mar 29, 2005 at 15:12:24 +0100, T E Schmitz <mailreg@numerixtechnology.de> wrote:
> 
> Shall do.
> But am I correct in assuming that I should place an index on the group 
> by (TRANSAKTION.ORIGIN) column?

This will mainly help when joining the view to another table. This would
also allow using an index scan instead of a sort in for DISTINCT which
may be faster in some cases.


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: cost of CREATE VIEW ... AS SELECT DISTINCT
Следующее
От: Tom Lane
Дата:
Сообщение: Re: cost of CREATE VIEW ... AS SELECT DISTINCT