Re: Index ot being used

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Index ot being used
Дата
Msg-id s2ad7232.064@gwmta.wicourts.gov
обсуждение исходный текст
Ответ на Index ot being used  (linux@alteeve.com)
Список pgsql-performance
I agree that ignoring useless columns in an ORDER BY clause is less
important than ignoring index columns where the value is fixed.  There
is one use case for ignoring useless ORDER BY columns that leaps to
mind, however -- a column is added to the ORDER BY clause of a query to
help out the optimizer, then the indexes are modified such that that
column is no longer useful.  Whether this merits the programming effort
and performance hit you describe seems highly questionable, though.

-Kevin


>>> Tom Lane <tgl@sss.pgh.pa.us> 06/13/05 11:22 AM >>>

I don't think the use-case has been shown that justifies doing this much
work to ignore useless ORDER BY clauses.  The examples that have come up
in the past all suggest ignoring index columns not the other way 'round.
Can you make a case that we need to do that part of it?


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

Предыдущее
От: Yves Vindevogel
Дата:
Сообщение: Re: Updates on large tables are extremely slow
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Index ot being used