Primary key
A column or group of columns that uniquely identifies each row and cannot contain null values.
System Design · Module 04
0 / 14 lessons done
Sign in to trackACID
The four guarantees of a database transaction: atomicity (all or nothing), consistency (rules stay true), isolation (concurrent transactions don’t interfere) and durability (committed data survives a crash).
Atomicity
A transaction’s database changes take effect together or do not remain committed.
Autocommit
A mode where each successful statement commits independently unless an explicit transaction groups statements.
B-tree
A balanced tree that keeps keys sorted in wide pages, so a database can find, insert or scan a range of keys with few disk reads.
B+tree
A balanced ordered tree whose internal nodes route searches and whose leaves hold all searchable entries, commonly with links for ordered scans.
Backfill
Populating a new representation or field for records that already exist.
Cardinality
The number of rows in a result or intermediate operation, either estimated or measured.
Checkpoint
A recovery boundary established by making required database state durable and recording where recovery can begin.
Compare-and-swap
An atomic operation that changes a value only if its current value or version matches an expected one.
Composite index
An index whose key contains several columns in a specified order.
Consistent snapshot
A database view containing a consistent set of committed changes at a defined boundary.
Cutover
The transition where an application begins using the replacement representation as its normal source.
Database constraint
A rule the database enforces when data is written, such as uniqueness, required values or valid references.
Database index
A structure containing selected database values that provides an efficient access path to matching data.
Database migration
A versioned change to a database schema or its stored data.
Database page
A fixed-size unit of database storage that holds records, index entries or metadata.
Database snapshot
The view of database contents used by a read, based on the transaction’s visibility rules.
Deadlock
A cycle in which transactions wait for locks held by one another, preventing them from proceeding.
Dependency injection
Giving code the collaborators it needs from outside, rather than making it construct them internally.
Dual writing
Writing each logical change to both an old and a replacement representation during a migration.
Entity
Something represented by a stable identity whose properties or lifecycle can change independently.
Expand and contract
Changing an interface by first supporting old and new access patterns, moving consumers and data, then removing the old pattern.
Expand–contract
A migration sequence that adds compatible structures, moves applications and data to them, then removes the old structures.
Expand–migrate–contract
A change sequence that adds compatible structures, moves data and consumers, then removes obsolete structures.
Foreign key
A database constraint requiring a reference to match a key in a referenced table, subject to the constraint’s null rules.
Full table scan
Reading a table’s rows to find the rows needed by a query instead of locating them through an index.
Group commit
Sharing one durable log flush across several transactions while each transaction waits for its required commit records.
Historical snapshot
Selected values preserved at a business moment so later changes do not alter the recorded fact.
Invalid index
In PostgreSQL, an index not trusted for query use because construction or validation is incomplete. Depending on its state, writes may still maintain it.
Invariant
A rule that must remain true after every accepted change to a system.
Isolation
The rules governing how overlapping transactions can observe and affect one another.
Isolation level
A database setting that controls which changes from other running transactions a transaction can see, trading protection against anomalies for concurrency.
Join
A query operation that combines rows according to a matching condition.
Key-value store
A storage interface that retrieves and changes a value using its key.
Log sequence number
A position in an ordered database log, used to describe logging, flushing and recovery progress.
MVCC (multi-version concurrency control)
A way for a database to keep several versions of a row, so readers see a consistent snapshot while writers create new versions without blocking them.
Namespace
A named group of keys that separates one application’s key space from another.
Normalization
Organizing tables around the facts they describe to reduce redundant current information and conflicting updates.
Online index build
Index construction that permits ordinary application activity during its main work, with engine-specific locking, coordination and resource costs.
Partial index
An index containing only rows that satisfy a specified condition.
Primary key
A column or group of columns that uniquely identifies each row and cannot contain null values.
Product variant
A separately identifiable sellable choice within a product, such as a particular size and color.
Query plan
A database’s chosen tree of operations for producing the result of a SQL statement.
Query planner
The database subsystem that chooses an execution strategy for a query using available access paths and estimated costs.
Repository pattern
An application boundary that provides access to stored business objects without exposing database queries or driver-specific results.
Revision token
An opaque identifier for one stored version, used to detect changes since a client read it.
Row lock
Database coordination that prevents conflicting operations on a row from proceeding together.
Row version
One stored state of a logical database row, with information used to determine which transactions may observe it.
Schema
The expected structure and rules for stored data, whether enforced by a database, an application or both.
Schema migration
A controlled change to a database’s structure, such as adding a column or changing a constraint.
Selectivity
The fraction of a table’s rows that match a query condition.
Separator key
A boundary key in an internal tree node that helps select the child containing a search key.
Serializable isolation
An isolation level where successful transactions have effects consistent with some one-at-a-time execution order.
Soft delete
Marking a stored record as deleted and excluding it from ordinary operations instead of immediately removing it.
Time to live
A duration that determines when stored data should stop being treated as available.
Transaction
A group of database operations with one commit or rollback boundary.
Transaction boundary
The set of operations protected together by one transaction.
Transaction isolation
The rules that govern what overlapping database transactions can observe and which combined outcomes may commit.
Unit of work
An application-facing scope that coordinates related database changes and owns their shared commit or rollback.
Upsert
A database operation that inserts a new row or updates a row that conflicts with an existing unique key.
Vacuum
PostgreSQL maintenance that reclaims space from unneeded row versions and performs other tasks needed for database health.
Version visibility
The rules that determine whether a stored data version belongs to a read’s permitted view.
Write skew
A concurrency failure where transactions write different rows based on overlapping reads and jointly break a rule.