3 ms·
count(*) ends up counting all records, reading one first row is much much faster than finding and counting all. https://wiki.postgresql.org/wiki/Slow_Counting
by adamzochowski 8y ago
count(*) ends up counting all records, reading one first row is much much faster than finding and counting all.
https://wiki.postgresql.org/wiki/Slow_Counting https://wiki.postgresql.org/wiki/Slow_Counting