3 ms·
I love Postgres as much as the next dev, but why are COUNTs so slow?
by willcodeforfoo 4y ago
I love Postgres as much as the next dev, but why are COUNTs so slow?
- pritambaral 4y agoBecause 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.