Django admin select count(*) from ...

Oct. 6, 2013, 2:24 p.m. Django , Python , roadlk

Shut up and just give me the code? Ok, look at the bottom of this post.What is the slowest query on road.lk? It's the select count(*) on the traffic alerts table that Django admin insists on executing each time someone visit the admin page for the alerts. Though we are fully operational only in Sri ...