Thursday, April 7, 2011

Why Django inserts LIMIT 21 on QuerySets...

Running the 'debugsqlshell' command in Django shows a lot of LIMIT 21 queries.  Why do they appear?  Here is a good explanation for why (basically so you don't see infinite items listed when doing a repr() on a QuerySet):

http://www.mail-archive.com/django-users@googlegroups.com/msg67486.html

No comments:

Post a Comment