#36741: Link to discussion about Model.save() not being bulk-friendly from
bulk_update() caveats
-------------------------------------+-------------------------------------
Reporter: Lam Phung | Owner:
Type: | Youngkwang Yang
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):
* stage: Unreviewed => Accepted
* summary:
Explain why pre_save/post_save signals are skipped when using
QuerySet.update()
=>
Link to discussion about Model.save() not being bulk-friendly from
bulk_update() caveats
Comment:
Thanks for the ticket.
I would take a PR that linked to the discussion about overriding the model
save() method, which finishes with an admonition about it being not bulk-
friendly. (Even better if we could link directly to that admonition,
haven't tried doing so in Sphinx.)
See:
https://github.com/django/django/blob/97acd4d2f92eef8c285bac070d437bf0fd52e071/docs/topics/db/models.txt#L967-L975
--
Ticket URL: <
https://code.djangoproject.com/ticket/36741#comment:5>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.