Re: ORDER BY costs

Поиск
Список
Период
Сортировка
От Carlos Benkendorf
Тема Re: ORDER BY costs
Дата
Msg-id 20051222140620.81529.qmail@web35501.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: ORDER BY costs  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
I´m not sure but I think the extra runtime of the select statement that has the ORDER BY clause is because the planner decided to sort the result set.
 
Is the sort really necessary? Why not only scanning the primary key index pages and retrieving the rows like the select without the order by clause?
 
Aren´t not the rows retrieved from the index in a odered form?
 
Thanks in advance!
 
Benkendorf
 
 
 


Yahoo! doce lar. Faça do Yahoo! sua homepage.

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

Предыдущее
От: Markus Schaber
Дата:
Сообщение: Re: MySQL is faster than PgSQL but a large margin in
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: effizient query with jdbc