I am trying to execute following query
select COUNT(*) from tbl_impressions group by spackage
and it took approximately 40 seconds to execute it at first but after a few time same query is executing within 2 seconds.
Does any one know the reason?
PS: All the tables are already indexed.
Thanks in advance.