#36526: bulk_update uses more memory than expected
-------------------------------------+-------------------------------------
Reporter: Anže Pečar | Owner: Jason
Type: | Hall
Cleanup/optimization | Status: closed
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
> I also wonder if we should consider a similar note to the one added in
#28231 for bulk_create and more efficient batching?
Natalia, I think we should yes.
My immediate reaction when reviewing the ticket was to have a look at the
`bulk_update` documentation and it's effectively not entirely clear what
''batching'' refers to (query batching vs objects materialization).
52aa26e6979ba81b00f1593d5ee8c5c73aaa6391 made it very clear that manual
generator slicing must be used to prevent evaluation.
--
Ticket URL: <https://code.djangoproject.com/ticket/36526#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019851d12501-9db18ba5-72ea-4f1c-9829-d9fb21ed96f9-000000%40eu-central-1.amazonses.com.