Reputation: 3453
I'm trying to use django's atomic
database API and I realize that I don't actually know what 'atomic' actually means [in this context].
From the docs:
Atomicity is the defining property of database transactions. atomic
allows us to create a block of code within which the atomicity on the database is guaranteed
What is database atomicity?
Upvotes: 0
Views: 67
Reputation: 245389
Atomicity is the concept that, within a transaction, either all of the operations succeed or all of the operations fail. This will prevent the database from being in a possibly corrupted state of partially applied updates to data.
If you want the long and detailed explanation, you can head over to Wikipedia and read the article:
Atomicity (database systems) - Wikipedia
Upvotes: 1