[patch] dictfetchmany and dictfetchall should use generators
In db.backends.util, dictfetchmany and dictfetchall currently use list comprehensions and will cause all rows to be loaded in to memory. Those functions should be generators, allowing rows to be loaded one at a time.
Attachments
(1)
- util.py.diff
(751 bytes
) - added by Simon Willison 18 years ago.
- Patch changing dictfetchmany and dictfetchall to be generators
Download all attachments as:
.zip
Change History
(2)
Resolution: |
→ fixed
|
Status: |
new → closed
|
Patch changing dictfetchmany and dictfetchall to be generators