You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers (Contributions to Django itself)
Hi there,
a fun issue came up on IRC today: Even when in autocommit mode, Django starts a transaction when doing Model.objects.create (https://github.com/django/django/blob/fb2964a4106b1282c4179b6fbbd0374f5be1ccac/django/db/models/base.py#L752). This makes some sense when there are parents to be saved also, but imo results in a rather high database roundtrip number for the simple case where there is a single model without inheritance. Does anyone know why we do this?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers (Contributions to Django itself)
Jupp, that ticket at least shows that I am not the first one to stumble onto this :) Baring no objections I will at least try to fix it for the "easy" cases; seems like an easy win.