I love Postgres, but the one thing I think sucks is it's COUNT() performance.
I've read all sorts of hacks but I would love for someone to solve this for me!
I've read all sorts of hacks but I would love for someone to solve this for me!
When you do need an accurate count, phrasing the query so the results can be pulled exclusively from the table index is also usually good enough.