Skip to content

Commit 021d687

Browse files
committed
ACID bro
1 parent 0df0fc2 commit 021d687

File tree

5 files changed

+34
-3
lines changed

5 files changed

+34
-3
lines changed

.vitepress/sidebar.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ export const sidebar = [
159159
{
160160
"text": "Databases",
161161
"items": [
162+
{
163+
"text": "ACID",
164+
"link": "/databases/acid"
165+
},
162166
{
163167
"text": "CHECK constraint v/s EXCLUSION constraint",
164168
"link": "/databases/check-constraint-vs-exclusion-constraint"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<td><a href="#data-warehouse">Data Warehouse</a><sup>[1]</sup></td>
3838
</tr>
3939
<tr>
40-
<td><a href="#databases">Databases</a><sup>[13]</sup></td>
40+
<td><a href="#databases">Databases</a><sup>[14]</sup></td>
4141
<td><a href="#devops">Devops</a><sup>[8]</sup></td>
4242
<td><a href="#distributed-computing">Distributed Computing</a><sup>[3]</sup></td>
4343
</tr>
@@ -182,6 +182,7 @@
182182
### Databases
183183

184184
<ul>
185+
<li><a target="_blank" href="https://github.com/Bhupesh-V/til/blob/master/databases/acid.md">ACID</a></li>
185186
<li><a target="_blank" href="https://github.com/Bhupesh-V/til/blob/master/databases/check-constraint-vs-exclusion-constraint.md">CHECK constraint v/s EXCLUSION constraint</a></li>
186187
<li><a target="_blank" href="https://github.com/Bhupesh-V/til/blob/master/databases/clustered-non-clustered-indexes.md">Clustered & Non-clustered Indexes</a></li>
187188
<li><a target="_blank" href="https://github.com/Bhupesh-V/til/blob/master/databases/database-sharding.md">Collected notes on Database Sharding 🗃</a></li>

count.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"count": 182
2+
"count": 183
33
}

databases/acid.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ACID
2+
3+
## Atomicity
4+
5+
- If operations, when grouped together in "atomic" transactions fail to be comitted due to a fault, then the transaction is aborted.
6+
- _Abortability_ could have been a better term
7+
8+
## Consistency
9+
10+
- Defines the the database is in a "good state" which is highly subjective because you can violate data rules
11+
- Not a property of a database.
12+
- The application may rely on database's atomicity & isolation properties to achieve consistency (?)
13+
14+
## Isolation
15+
16+
- Concurrently running transactions are isolated from each other.
17+
18+
## Durability
19+
20+
- Promise that once a transaction has comitted successfully, any data it has written will not be forgotten, even if there's a hardware failure.
21+
- Single node = write to disk
22+
- Distributed = replicate
23+
24+
25+
Reference: DDIA

index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<td><a href="#data-warehouse">Data Warehouse</a><sup>[1]</sup></td>
2525
</tr>
2626
<tr>
27-
<td><a href="#databases">Databases</a><sup>[13]</sup></td>
27+
<td><a href="#databases">Databases</a><sup>[14]</sup></td>
2828
<td><a href="#devops">Devops</a><sup>[8]</sup></td>
2929
<td><a href="#distributed-computing">Distributed Computing</a><sup>[3]</sup></td>
3030
</tr>
@@ -207,6 +207,7 @@
207207
### Databases
208208

209209
<ul>
210+
<li><a href="/databases/acid">ACID</a></li>
210211
<li><a href="/databases/check-constraint-vs-exclusion-constraint">CHECK constraint v/s EXCLUSION constraint</a></li>
211212
<li><a href="/databases/clustered-non-clustered-indexes">Clustered & Non-clustered Indexes</a></li>
212213
<li><a href="/databases/database-sharding">Collected notes on Database Sharding 🗃</a></li>

0 commit comments

Comments
 (0)