Re: ORDER BY costs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux