Skip to content
Reviewed by Siddharth Sharma Nov 20, 2026

Home › Guides › ACID properties in DBMS

Tech Explained · 2026

What Are ACID Properties in DBMS? Plain-English Definition, How Transactions Work and a Worked Postgres Example in 2026

ACID properties in DBMS are four guarantees a database makes about every transaction: atomicity, consistency, isolation and durability. Together they promise that a group of statements either all take effect or none do, and that a commit survives a crash. Miss any one of the four and your ledger drifts silently.

20 November 202612 min readBy the 360 Digital Transformation Editorial Team
Key takeaways
  • A transaction is the unit, not the statement. ACID says nothing about a single UPDATE. It describes what the database promises about everything between BEGIN and COMMIT.
  • Isolation is the only one you have to configure. Atomicity, consistency and durability come switched on. Isolation ships as a dial, and the default sits lower than most people assume.
  • PostgreSQL defaults to READ COMMITTED; MySQL InnoDB defaults to REPEATABLE READ. The same application code can therefore behave differently on two engines without a single line changing.
  • Lost updates happen at the default level. The worked example below reproduces one in two psql windows in under a minute, and the fix is one word in the UPDATE.
  • Warehouses are ACID too, with one level only. Microsoft Fabric Warehouse documents snapshot isolation and ignores T-SQL attempts to change it.
  • The label on the level is not a proof. Jepsen's published analysis of PostgreSQL 12.3 found anomalies at the level named SERIALIZABLE, which is a good reason to test your own invariants.

A support ticket says a borrower's outstanding balance went up by Rs 2,000 overnight and nobody deployed anything. No error in the logs, no failed job, no alert. Two repayment handlers ran in the same second and one of them wrote over the other's arithmetic. That is a lost update, it is the cheapest possible lesson in why these four properties exist, and you can reproduce it on your laptop in two terminal windows.

How ACID Properties in DBMS Actually Work

Keep one picture in your head for the rest of this guide: a two-person data team at a mid-size Indian lending NBFC, one ledger table called accounts, a repayment API that updates it all day, and a nightly load that copies it into a warehouse. Every claim below lands somewhere in that setup.

What is a database transaction, exactly?

A transaction is a block of work the engine agrees to treat as indivisible. You open it with BEGIN, run one or more statements, and close it with COMMIT or ROLLBACK. If you never write BEGIN, you still get transactions: most engines wrap each standalone statement in one, which is why a single UPDATE touching 40,000 rows either updates all of them or none. The interesting failures start the moment your unit of work spans two statements, because that is the first time a crash or a concurrent writer can land in the middle.

The four letters, mapped to the machinery that enforces them

Each property is implemented by a different subsystem, which is why they fail in different ways.

1

Atomicity

All statements in the transaction take effect, or none do. Enforced by undo information and visibility rules: an aborted transaction's row versions are simply never made visible to anyone else, so there is nothing to clean up before readers are safe.

Undo and visibility
2

Consistency

A transaction moves the database from one legal state to another legal state. The engine only enforces the rules you declared: primary keys, foreign keys, NOT NULL, CHECK constraints, triggers. A rule that lives only in your Python code is not covered.

Constraints
3

Isolation

Concurrent transactions do not see each other's half-finished work. Enforced by MVCC snapshots plus row locks, and it is the only property with a user-facing dial. How much isolation you get depends entirely on the level you selected, or the level you inherited.

MVCC and locks
4

Durability

Once COMMIT returns, the change survives a power cut. Enforced by the write-ahead log: the log record goes to disk before the data page does, so a restart can replay anything the data files are missing.

Write-ahead log

Mechanism names follow the PostgreSQL and MySQL InnoDB documentation, checked 20 November 2026.

The machinery behind atomicity consistency isolation durability

An UPDATE in a modern engine does not overwrite your row. It writes a new version of the row and marks the old one as superseded by your transaction id. That one design decision explains most of what follows. Readers that started before you can keep reading the old version, which is isolation without blocking. If you roll back, your version is never made visible to anyone, which is atomicity without an expensive rewind. And the log record describing the change reaches disk before the data page does, so a crash costs you nothing you were told was committed.

That last step is also where throughput goes. COMMIT does not return until the log record is physically on disk, so every commit is at minimum one flush. Turn synchronous commit off and your writes get dramatically faster, and a power cut now loses the most recent commits the database already acknowledged. That is a real trade and some teams take it deliberately for high-volume event tables. Taking it by accident for a loan ledger is how you end up in an audit meeting.

One repayment, four guarantees

Follow the arrows: each label is the property that the next step buys you.

How a single repayment transaction satisfies atomicity, consistency, isolation and durability A flow diagram. BEGIN and an UPDATE write a new row version, constraints are then checked, and COMMIT flushes a write-ahead log record to disk. Three branches below show rollback discarding the new version, concurrent readers still seeing the old version, and a restart replaying the log. BEGIN; UPDATE accounts new row version written CHECK, FK and triggers verified before commit COMMIT returns only after the WAL fsync consistency durability ROLLBACK: that version is never made visible Other sessions keep reading the old version Power cut: restart replays the log record atomicity isolation crash recovery

Sequence follows the PostgreSQL 18 documentation on MVCC and write-ahead logging, checked 20 November 2026.

ACID Properties in DBMS: A Worked Lost Update You Can Reproduce

Open two psql windows against any throwaway database. This is the NBFC ledger, one row, Rs 5,000 outstanding, and two repayment handlers that each read the balance, subtract in application code, and write the answer back.

-- setup, run once
CREATE TABLE accounts (id int primary key, balance numeric);
INSERT INTO accounts VALUES (1, 5000);

-- session A                        -- session B
BEGIN;                             BEGIN;
SELECT balance FROM accounts
  WHERE id = 1;   -- reads 5000
                                   SELECT balance FROM accounts
                                     WHERE id = 1;   -- also reads 5000
UPDATE accounts SET balance = 3000
  WHERE id = 1;   -- 5000 - 2000
COMMIT;
                                   UPDATE accounts SET balance = 2000
                                     WHERE id = 1;   -- 5000 - 3000
                                   COMMIT;

SELECT balance FROM accounts WHERE id = 1;
-- 2000. Two repayments of 2000 and 3000 landed on a 5000 balance
-- and the borrower still owes 2000. Session A's write vanished.

Nothing failed. No deadlock, no error, no retry. Both transactions were perfectly atomic, perfectly durable, and both respected every constraint on the table. What they did not have was enough isolation, and the default level is where almost every production system sits. Run SHOW transaction_isolation; in psql and you will see read committed, which the PostgreSQL documentation confirms as the default; the same query in MySQL is SELECT @@transaction_isolation; and the MySQL 8.4 reference manual gives REPEATABLE READ as the InnoDB default.

Here are the three fixes, in the order you should reach for them.

-- Fix 1: let the database do the arithmetic (best default)
UPDATE accounts SET balance = balance - 3000 WHERE id = 1;
-- B blocks on A's row lock, then re-reads the committed row
-- and computes 3000 - 3000 = 0. Correct.

-- Fix 2: lock the row at read time, when you must compute outside SQL
BEGIN;
SELECT balance FROM accounts WHERE id = 1 FOR UPDATE;
-- B waits here until A commits, then reads 3000
UPDATE accounts SET balance = 0 WHERE id = 1;
COMMIT;

-- Fix 3: raise the level and handle the error
BEGIN ISOLATION LEVEL REPEATABLE READ;
-- B's UPDATE now fails loudly:
-- ERROR: could not serialize access due to concurrent update
-- Your application must catch it and retry the whole transaction.
Fix What it costs When it is the right answer
SET col = col - x Almost nothing. One row lock held for the length of the statement. Any counter, balance or stock level. Reach for this first and you will rarely need the others.
SELECT ... FOR UPDATE Lock held until commit, so a slow transaction becomes everyone's slow transaction. The new value depends on logic SQL cannot express, or on a second table you must read first.
REPEATABLE READ or SERIALIZABLE Serialization errors under load, so you need retry logic and idempotent handlers. Multi-statement invariants, such as "total disbursed across these five rows must stay under the sanctioned limit".
A Redis lock or an application mutex A second system that can lose the lock, plus a new failure mode nobody tests. Rarely. If the rows live in one database, use the database. This is the fix people pick when they have not read this far.

Here is what usually goes wrong when a team finds this bug for the first time. Someone adds a SELECT ... FOR UPDATE to the hot path, the fix works in staging, and three weeks later the repayment endpoint times out every evening at 7 PM because a single slow handler now serialises the whole queue. The lock was never the problem. Doing arithmetic in Python on a value the database had already moved on from was the problem.

Also read: How Database Indexing Works in 2026, which covers the other half of why the same query behaves differently on your laptop and in production.

ACID vs BASE: Which Guarantee Your System Actually Needs

BASE is the label the distributed-systems world adopted for the opposite trade: basically available, soft state, eventually consistent. It is not a weaker version of ACID written by lazier engineers. It is what you get when a system refuses to make one node wait for another, and for a shopping cart or a feed counter that refusal is worth more than a strict guarantee.

Dimension ACID BASE
What a write promises Visible to everyone the instant COMMIT returns, or not at all. Visible everywhere eventually, with a window where two readers disagree.
Typical home PostgreSQL, MySQL InnoDB, SQL Server, Oracle, and warehouse engines such as Fabric Warehouse. Wide-column and document stores tuned for scale, plus most multi-region caches and queues.
Failure you plan for Serialization errors and lock waits, which you retry. Stale reads and conflicting versions, which you resolve or merge.
Cost of a cross-row guarantee Built in. One transaction, one COMMIT. Capped and explicit. DynamoDB, for example, documents a hard limit of 100 items and 4 MB in one TransactWriteItems call.
Good fit Money, inventory, bookings, anything a regulator or an auditor will read back to you. Timelines, view counts, recommendations, session state, anything where last-write-wins is survivable.

The honest version of the choice is less dramatic than the blog posts suggest. Most Indian product teams building on one Postgres or one Fabric workspace never leave ACID, and should not: a single engine that fits on one machine gives you strict guarantees for free, and you buy BASE only when geography or write volume forces you to. If you are deciding where to start learning, start with transactions. The distributed trade-offs make sense only once you know precisely what you are giving up, which is why the live Microsoft Fabric data engineering program spends its SQL warehouse module on transaction behaviour before it touches multi-engine pipelines, and why the broader certifications overview puts data fundamentals ahead of architecture.

Isolation Levels in DBMS: The Dial Nobody Touches Until Production Breaks

The SQL standard defines four levels by naming the anomalies each one forbids. Read them as a ladder of things that stop being possible, not as a quality score, because every rung up costs you either concurrency or retries.

The isolation ladder, rung by rung

Each level blocks one more anomaly and charges you for it somewhere else.

Read uncommitted

Dirty reads→allowed
PostgreSQL treats it as read committed

Read committed

Dirty reads→blocked
PostgreSQL default, lost updates still possible

Repeatable read

Re-read changes→blocked
MySQL InnoDB default, expect serialization errors

Serializable

Write skew→blocked
Strictest, highest abort rate under contention

Defaults from the PostgreSQL 18 and MySQL 8.4 reference manuals, checked 20 November 2026.

Level Dirty read Lost update Phantom read Where you meet it
Read uncommitted Permitted by the standard Yes Yes Almost nowhere. PostgreSQL's documentation states it behaves as read committed.
Read committed No Yes Yes PostgreSQL and SQL Server defaults. The level your lost update happened at.
Repeatable read No Blocked with an error Mostly no in InnoDB MySQL InnoDB default, per the 8.4 manual.
Serializable No No No Opt in per transaction, for multi-row invariants.
Snapshot No Detected at commit No The only level Microsoft Fabric Warehouse offers.
What catches teams out
  • A level is per transaction, not per database. One ORM that opens connections with its own default will quietly run at a different level from your psql session.
  • Raising the level does not remove the bug, it renames it. At repeatable read the lost update becomes could not serialize access due to concurrent update. If you have no retry, you have swapped silent corruption for a 500 at checkout.
  • Read-only does not mean safe. Two SELECTs in one read committed transaction can see two different worlds, which is how a reconciliation report ends up not balancing.
  • Long transactions are the real tax. An idle-in-transaction connection holds back cleanup of old row versions and your table bloats while nothing appears to be running.

What Jepsen Found When It Tested PostgreSQL's SERIALIZABLE

In June 2020, Kyle Kingsbury of Jepsen published an analysis of PostgreSQL 12.3 and reported something uncomfortable: the level labelled SERIALIZABLE allowed G2-item anti-dependency cycles during normal operation, with six cases detected inside a two-minute test run. No network partitions, no crashes, no induced faults. His accompanying post to the pgsql-bugs list on 1 June 2020 noted that every anomaly involved a read that returned nothing, and argued that what the engine called serializable behaved as snapshot isolation. The thread that followed, with PostgreSQL committers arguing over how the SQL standard's anomaly definitions should be read, is still one of the most instructive things you can read about this topic.

The lesson is not that PostgreSQL is unsafe. It is among the most carefully engineered pieces of software you will ever deploy, and this is a report from a specific version tested with an adversarial checker. The lesson is that the word on the dial is a vendor's summary of complicated behaviour, and the only thing that actually protects your ledger is an invariant you can state and test. Write the test that asserts total disbursed never exceeds the sanctioned limit, run it with twenty concurrent writers, and you will learn more about your isolation level in ten minutes than any documentation page can tell you.

One honest caveat, because this subject attracts more rigour than most readers need. If your job is dashboards and reports, almost none of this will ever bite you. You read from a warehouse under snapshot isolation, your queries see a consistent point in time, and the worst thing that happens is a refresh showing yesterday's number. The people who genuinely need the lock-manager detail are the ones writing concurrent transactions against operational tables. Everyone else should know the vocabulary, know that defaults exist, and get back to work.

Where You Will Meet ACID Properties in Real Work

Three places, in rough order of how often they turn up in Indian job interviews and in Indian production incidents.

In the warehouse, where you get one level and no dial

Microsoft's documentation for Fabric Warehouse states that each transaction is atomic, consistent, isolated and durable, and that snapshot isolation is the only level supported: T-SQL statements that try to change the isolation level are ignored. Readers and writers do not block each other, and the price is write-write conflicts, which the docs say are detected at commit time when two transactions modify the same table, and are often resolved by retrying. The same documentation lists real limits worth knowing before your first nightly load: no distributed transactions, no save points, and ALTER TABLE is not supported inside an explicit transaction. That last one has ruined more than one migration script. Working through this behaviour against a live warehouse is part of the DP-700 Fabric data engineering track, and the related Power BI and SQL data analyst course covers the reader's side of it, which is why a dashboard can disagree with the source system for a few minutes without anything being broken.

In the cloud, where transactions come with a quota

Move off a single relational engine and the guarantee becomes a metered feature. Amazon's DynamoDB documentation puts a hard ceiling on transactional writes: up to 100 items and 4 MB in one TransactWriteItems call, all in the same account and Region, with no two actions touching the same item. The 25-item figure you will still find in older AWS blog posts has been out of date since September 2022. Designing around numbers like these is ordinary work for anyone preparing for SAA-C03 on an AWS Solutions Architect and DevOps course, and the equivalent judgement on Azure, where you weigh SQL Database against Cosmos DB for a given workload, sits inside the AZ-305 architecture syllabus.

In AI systems, where an agent now holds the write handle

This is the new one. An agent that books, refunds or updates records is a concurrent writer with no instinct for a retry loop, and the usual failure is not a hallucination but a double write after a timeout: the tool call succeeded, the response never arrived, the agent tried again. The fix is the same one databases have used for decades, an idempotency key enforced by a unique constraint, so the second attempt fails cleanly instead of charging the customer twice. Building tool handlers that behave under concurrency is a practical module in the AI Engineer course on RAG and AI agents, and if you only want to see how the pieces fit before committing to anything, the free webinars are the cheaper way to look.

Also read: What Is a Data Warehouse? for where these committed rows end up, and Change Data Capture in 2026 for how the log that guarantees durability becomes the feed that moves your data.

How to Learn Transactions and Isolation Properly

Reading about anomalies teaches you the words. Reproducing them teaches you the behaviour, and the gap between those two is most of what separates a candidate who can define ACID from one who can debug it. The sequence that works: install PostgreSQL locally, reproduce the lost update above, fix it three ways, then break it again at repeatable read and write the retry loop. Two evenings, no cloud bill. After that, do the same exercise against a warehouse engine, because snapshot isolation behaves differently enough to be worth feeling rather than reading.

Live course

Learn transactions, warehouses and Fabric pipelines in a live weekend batch

Live online·Sat–Sun, 8–11 PM IST·50+ hrs·Rs 24,999

A live weekend program over 8 weeks covering Microsoft Fabric data engineering for the DP-700 certification, with DP-900 fundamentals included. Hands on projects, mentor support and placement guidance are part of the course.

Explore the course
Microsoft Fabric Data Engineer Course (DP-700 + DP-900 + Claude)

Frequently asked questions

What are the ACID properties in DBMS in simple words?

Atomicity means all of a transaction happens or none of it does. Consistency means the database only moves between states that satisfy the rules you declared. Isolation means concurrent transactions do not see each other's unfinished work. Durability means a committed change survives a crash. ACID properties in DBMS are those four promises, enforced together on every transaction.

What is a database transaction?

It is a block of statements the engine treats as one indivisible unit of work, opened with BEGIN and closed with COMMIT or ROLLBACK. Statements you run without an explicit BEGIN are still wrapped in their own single-statement transaction, which is why one UPDATE either changes every matching row or none of them.

What is the difference between ACID and BASE?

ACID makes a write visible to everyone the moment it commits, and charges you in lock waits and serialization errors. BASE accepts a window where two readers disagree, and buys availability and scale with it. Use ACID for money, inventory and bookings; BASE is reasonable for counters, feeds and session state where last-write-wins is survivable.

What is the default isolation level in PostgreSQL and MySQL?

PostgreSQL defaults to read committed, per its current documentation for the 18 release line. MySQL InnoDB defaults to repeatable read, per the MySQL 8.4 reference manual. The same application code can therefore allow a lost update on one engine and raise a serialization error on the other, which is a genuinely unpleasant surprise during a migration.

Does PostgreSQL support READ UNCOMMITTED?

You can request it and the statement succeeds, but the documentation states that PostgreSQL's read uncommitted mode behaves the same as read committed. There are no dirty reads to be had. Treat the level as four options in the standard and three distinct behaviours in PostgreSQL.

Do data warehouses support ACID transactions?

Modern ones do. Microsoft's Fabric Warehouse documentation describes every transaction as atomic, consistent, isolated and durable, with snapshot isolation as the only supported level and T-SQL attempts to change it ignored. The documented limits matter more in practice: no distributed transactions, no save points, and no ALTER TABLE inside an explicit transaction.

How do I prevent a lost update in SQL?

Let the database compute the new value: write UPDATE accounts SET balance = balance - 3000 rather than reading the balance, subtracting in application code and writing a literal back. When the new value depends on logic SQL cannot express, take a row lock with SELECT ... FOR UPDATE at read time, or raise the isolation level and add a retry loop for serialization errors.

Are ACID properties asked in data engineering interviews?

Constantly, and the four definitions are the easy half. The question that separates candidates is the follow-up: name an anomaly your default isolation level permits, and say how you would prevent it. Answer that with the lost update and the three fixes above and you have shown more than a memorised acronym.

If I were starting from where you are, I would not read another explainer. I would install PostgreSQL this evening, open two terminals, and steal Rs 2,000 from a test account with four lines of SQL, because the memory of watching a write disappear is what makes you careful with every ledger you touch afterwards. Then raise the level, watch the error you now have to handle, and decide which cost you would rather carry. When you want that practised against a real warehouse with someone correcting you in the moment, the Microsoft Fabric Data Engineer course runs live on weekends, and a free demo class will tell you in an hour whether the format suits you.

About this guide. 360 Digital Transformation is an Anthropic Partner and a Microsoft Authorized Training Partner. Other certification bodies, vendors and employers named here are not affiliated with us. Tools and versions change quickly; commands and figures cited were checked on 20 November 2026.

Learn it live with 360 Digital Transformation

Turn this guide into a skill employers can see

Live weekend cohortEMI available

Microsoft Fabric Data Engineer Course (DP-700 + DP-900 + Claude)

Rs. 24,999Rs. 31,249 Save 20%

Tools and platforms you work with

  • Microsoft Fabric
  • Apache Spark and PySpark
  • Delta Lake
  • T-SQL
  • Python
  • Fabric Notebooks
  • Git
  • GitHub
Add bonus modules
See the syllabus and batch dates

Other live courses on this career path