Hacker News new | ask | show | jobs
by willcodeforfoo 1288 days ago
I love Postgres as much as the next dev, but why are COUNTs so slow?
1 comments

Because of how MVCC is implemented in Postgres. However, it's not terribly hard to add efficient count tracking that works with this implementation of MVCC, using row triggers. I use it often in production.

This might change in the future with the zHeap storage backend.