Sunday, September 14, 2014

Re: LIMIT 21 on primary key lookups

On 2014-09-14 13:23, James Bennett wrote:
> This was something that could bite any user of Django with large
> enough QuerySets, so the behavior was changed in upstream Django to
> only show 20 objects.
[snip]
> This means that repr() on a QuerySet will never instantiate huge
> numbers of objects,

A change for which I directly benefited, as my initial Django project
involved statements on corporate cell-phone bills, meaning that a
repr() of a bill might dump tens of thousands of line-items (and take
correspondingly long in a traceback where that repr() might appear
multiple times).

So thanks to those that implemented that change!

-tkc



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20140914123657.5cccf86a%40bigbox.christie.dr.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment