> On 1 Dec 2016, at 13:29, Shai Berger <s...@platonix.com> wrote:
> 
> On Thursday 01 December 2016 13:52:41 Aymeric Augustin wrote:
>> 
>> I’m proposing a separate context manager because I’m worried about
>> increasing again the complexity of transaction.atomic. There will be a
>> significant amount of duplication between the two implementations, though.
>> 
> I believe that making transaction.atomic more complex for this will be 
> inevitable, because the two will need to interact: If I'm in a TPC 
> transaction, and open an atomic block, it needs to be handled as part of the 
> TPC transaction. There are too many atomic blocks in the Django ecosystem, 
> including Django itself, to make the feature useful any other way.

You may be right.

The person who will write and test that code has all my sympathy :-)

-- 
Aymeric.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/71DB73AC-E6C5-4753-8F6D-A04A2A3F57BD%40polytechnique.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to