How to avoid a count query in Django if you can
This article shows us how to get database results with a count in one database query instead of two.
This article shows us how to get database results with a count in one database query instead of two.