diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-01-26 13:23:54 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-01-26 13:23:54 +0000 |
| commit | dd2251a653f45406a720203c35e40adac5411b5a (patch) | |
| tree | 9a2f4839635d941bac25e4a0b80509a1dd299613 /docs | |
| parent | 98abf27535a7e0d2d481bd59fb73a48433772d8c (diff) | |
queryset-refactor: Converted the queryset iterator to be a real iterator and
only populate the result cache on demand. We actually populate the result cache
100 elements at a time, rather than one at a time for efficiency, but this is a
real win when the resultset contains 10,000 objects for example.
This also provides an efficient boolean (__nonzero__) test that doesn't use up
a lot of memory if you don't read all the results.
Refs #2430, #5987.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7030 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
