How to speed up select count(*) with group by? It\'s too slow and is used very frequently. I have a big trouble using select count(*)
select count(*)
group by
You should keep a separate table of counts! This table could be updated on each insert / delete. It would make this sort of query instantaneous.