350
See MongoDB (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] Gonzako@lemmy.world 10 points 17 hours ago
[-] ramjambamalam@lemmy.ca 25 points 17 hours ago* (last edited 16 hours ago)

Atomicity: either all parts of the transaction complete, or all parts of the transaction don't complete; there's no "partly complete" state

Consistency: the state of the database after a transaction is stable; all "downstream" effects (e.g. triggers) of the query are complete before the transaction is confirmed.

Isolation: concurrent transactions behave the same as sequential transactions

Durability: a power failure or crash won't lose any transactions

Traditionally, ACID is where relational databases shine.

[-] CosmicTurtle0@lemmy.dbzer0.com 13 points 16 hours ago

You've gotten good answers from other folks but I'll provide a ELI5:

Basically a set of rules in the database to make sure that it is immediately consistent.

NoSQL databases offer eventual consistency in exchange for speed so they are generally not considered to be ACID compliant.

Most traditional databases (MySQL, postgresql, etc.) are.

There are a couple of emerging companies that try to tackle speed for traditional databases. CockroachDB offers a postgress-based database that scales more like NoSQL while still offering ACID transactions.

TiDB is a similar company but for MySQL.

[-] mcv@lemmy.zip 2 points 13 hours ago

Not all NoSQL databases are the same. Neo4j is acid compliant, and lightning fast for complex relationships that relational databases struggle with.

[-] qjkxbmwvz@startrek.website 10 points 17 hours ago

https://en.m.wikipedia.org/wiki/ACID

Atomicity (something happens in its entirety or not at all), consistency (database is always in a valid state


if the database has constraints, they will always be honored), isolation (transactions don't step on each other), durability (complete transaction is complete even if there's a power failure).

Not a database expert, my parenthetical explanations may need work.

this post was submitted on 28 Aug 2025
350 points (100.0% liked)

Programmer Humor

26006 readers
911 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS