Transaction.atomic()

16 views
Skip to first unread message

Aryan Patel

unread,
Sep 23, 2019, 8:42:31 AM9/23/19
to Django users
Hi colleagues,

I want to understand if transaction.atomic() in django guarantees that the client is getting status what the django is sending?

This question is just for discussion whether the django builds a pipeline with the client and if the network broke down while the django is sending the status then transaction.atomic will be reverted back or it will successfully commits regardless whether the client is getting status or not? 

Jason

unread,
Sep 23, 2019, 10:01:30 AM9/23/19
to Django users
no, atomic transactions are just for the database.  It has nothing to do with a client, just the integrity of a data commit. 


Jani Tiainen

unread,
Sep 23, 2019, 10:12:37 AM9/23/19
to django...@googlegroups.com
And TL;DR; versio.

Code which is wrapped within atomic transaction will guarantee that if code breaks changes are rolled back.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/571c334b-9508-41e7-b360-2d312774c192%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages