🎁 New User? Get 20% off your first purchase with code NEWUSER20 · ⚡ Instant download · 🔒 Secure checkout Register Now →
Menu

Categories

Databases Intermediate

What is Transaction?

A sequence of database operations that are treated as a single unit — either all succeed or all are rolled back.

Transactions ensure data consistency through ACID properties: Atomicity (all or nothing), Consistency (valid state transitions), Isolation (concurrent transactions don't interfere), and Durability (committed data persists).

Commands include BEGIN/START TRANSACTION, COMMIT (save changes), and ROLLBACK (undo changes). Isolation levels (READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, SERIALIZABLE) balance consistency and performance.

Related Terms

JOIN
An SQL operation that combines rows from two or more tables based on a related column between them.
Migration
A version-controlled change to a database schema that can be applied and reversed systematically.
Upsert
A database operation that inserts a new row if it does not exist, or updates the existing row if it does.
PostgreSQL
An advanced open-source relational database known for its reliability, feature richness, and standards compliance.
ETL (Extract, Transform, Load)
A data pipeline process that extracts data from sources, transforms it into a suitable format, and loads it into a destination system.
Partitioning
A technique of dividing large database tables into smaller, more manageable segments while maintaining a single logical table.
View All Databases Terms →