A performance lesson on Django QuerySets
by Anand Jeyahar
At work, we've contracted with PostgreSQL Experts to help us improve our Postgres performance. After analyzing our system, one of their consultants, Christophe Pettus, found glaring problems in how some of my code accessed our database.
I consider myself well-informed about good database access practices in Django, and in general. I might not exactly hit the bull's-eye, but I'm sufficiently savvy to avoid making a "WTF" mistake, right?