Permalink
Browse files

More realistic select_related test

  • Loading branch information...
1 parent 79b3770 commit 678e77cd6305ccaa02259f7f8e9d2f139840f73b @spookylukey committed Oct 4, 2011
@@ -2,7 +2,8 @@
from query_select_related.models import Book
def benchmark():
- list(Book.objects.select_related())
+ for i in xrange(20):
+ list(Book.objects.select_related('author'))
run_benchmark(
benchmark,
Oops, something went wrong.

0 comments on commit 678e77c

Please sign in to comment.