> For the complete documentation index, see [llms.txt](https://dev7days.gitbook.io/dev7days/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev7days.gitbook.io/dev7days/database/acid.md).

# ACID

Describe about What is ACID

ACID is the fundamental concept of database including :

* Atomicity&#x20;
* Consistency
* Isolation
* Durability

### Atomicity

Atomicity mean everything is not able to split or separate. It mean all of queries in the transaction need to succeed If not then it will rollback or the database is crashed by itself it still rollback as well before it restart again.

### Isolation

These are the main thing that you need to know first.

1. Can our transaction see  changes made by other transaction ? It mean when you read the data in #1 transaction and at the same time in another transaction #2 update the value then #1 should see the update value or not.
2. Read phenomena -> Reading Situation that is able to happen)
3. Isolation level -> It is the way that we handle to resolve read phenomena problem

#### Read Phenomena&#x20;

including&#x20;

1. Dirty Reads
2. Non-repeatable read
3. Phantom Read
4. Lost update
