Why is SELECT COUNT(*) so slow in PostgreSQL?
MVCC means Postgres doesn't store a row count. Make exact counts cheaper, get instant estimates from the planner, and keep exact counters when you really need them.
In this article
- 01Why there's no stored row count
- 02Make the exact count cheaper
