Changes between Initial Version and Version 1 of Ticket #33882, comment 4


Ignore:
Timestamp:
Aug 2, 2022, 2:23:11 AM (2 years ago)
Author:
alex

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33882, comment 4

    initial v1  
    1010https://forum.djangoproject.com/t/is-it-possible-to-use-transaction-atomic-with-async-functions/8924
    1111
    12 When looking through the contextmanager (which is actually a class named Atomic in the same file) I saw that __enter__ and __exit__ use simple db operations.
     12When looking through the contextmanager (which is actually a class named Atomic in the same file) I saw that `__enter__` and `__exit__` use simple db operations for starting the transaction.
    1313If we use the wrappers like suggested (`__aenter__` and `__aexit__`) then everything should be fine in theory. In praxis I need to test the code (I have not much time so it may be easier if somebody else tries this out)
    1414
Back to Top