Improving Django's default pagination performance

from blog Applied Cartography, | ↗ original
Buttondown's API calls are very fast, and one of the reasons why is that we've removed every single possible database query that we can. The most recent was what looked like a fairly benign COUNT(*) query, coming from the default Django paginator; if you're gonna paginate things, you need to know how many to paginate, fair enough. However, it...