shannonturner / bechdel

If your movie doesn't pass the Bechdel test, we'll find you a better one
https://shannonvturner.com/bechdel
20 stars 4 forks source link

Speed Optimizations: Use Movie.objects.count() where possible #24

Closed shannonturner closed 10 years ago

shannonturner commented 10 years ago

Looks like using len(Movie.objects.all()) is NOT best practice, especially for a site with so many records.

Using Movie.objects.count() may lead to speed improvements.

shannonturner commented 10 years ago

Fixed in cddfd6f5f3450b045212f00914d0124c96551bf6