#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.

-- 
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/0107019a9dc6b7ea-271f4b88-a0d8-4543-85ea-a37c94024a3b-000000%40eu-central-1.amazonses.com.

Reply via email to