Re: which one is faster

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

 





On 26 October 2010 12:56, AI Rumman <rummandba@xxxxxxxxx> wrote:
Which one is faster?
select count(*) from talble
or
select count(id) from table
where id is the primary key.


Check the query plan, both queries are the same.

regards
Szymon

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

  Powered by Linux