#25939: Remove transaction from QuerySet.update_or_create's save()
-------------------------------------+-------------------------------------
               Reporter:  timgraham  |          Owner:  nobody
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:  Database   |        Version:  master
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:  Ready for  |      Has patch:  1
  checkin                            |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 According to Aymeric on [https://github.com/django/django/pull/5804 the
 pull request]:

 It will have beneficial performance effects if:
 * `ATOMIC_REQUESTS` is not in use
 * `update_or_create` ends up creating an object
 * the `save` method of that objects does long things like sending email
 after the write (i.e. once it holds an exclusive lock on the database)

--
Ticket URL: <https://code.djangoproject.com/ticket/25939>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.b111854646e1e02bf10a09002d436e0f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to