The words you will hear when planning database work, explained simply. Type to filter.
- Database
- An organised system for storing, finding and updating data.
- Relational database
- A database that stores data in tables linked by keys and queried with SQL.
- SQL
- Structured Query Language, used to read and change data in relational databases.
- NoSQL
- A broad term for databases that do not use the relational table model, such as document or key value stores.
- Document database
- A database that stores records as flexible JSON like documents.
- Key value store
- A database that stores and finds values by a unique key.
- Schema
- The structure of a database: its tables, columns, types and rules.
- Primary key
- A column or set of columns that uniquely identifies each row.
- Foreign key
- A column that links a row to a row in another table.
- Constraint
- A rule the database enforces, such as uniqueness or required values.
- Normalisation
- Organising data so each fact is stored once.
- Denormalisation
- Deliberately duplicating some data to make reads faster.
- Index
- A structure that helps the database find rows quickly without scanning everything.
- Query plan
- The steps a database chooses to run a query, shown by EXPLAIN.
- N plus one query
- A pattern where code runs one query per item instead of one query for all items.
- ORM
- Object relational mapper: a library that maps tables to code objects.
- Transaction
- A group of changes that succeed or fail together.
- ACID
- Atomicity, consistency, isolation and durability: guarantees for reliable transactions.
- Isolation level
- How much concurrent transactions can see of each other's changes.
- Eventual consistency
- A model where all copies of data become consistent after a short delay.
- Replica
- A copy of a database kept in sync with the primary.
- Failover
- Switching to a standby database when the primary fails.
- Point in time recovery
- Restoring a database to any moment within a retention period.
- RPO
- Recovery point objective: how much recent data you could afford to lose.
- RTO
- Recovery time objective: how long the system can be down during recovery.
- Sharding
- Splitting data across several databases to spread load.
- Partitioning
- Splitting a large table into smaller parts inside one database.
- Connection pooling
- Reusing a set of database connections across many requests.
- Migration
- A versioned, scripted change to a database schema.
- Expand and contract
- A safe way to change schemas by adding new structures before removing old ones.
- Change data capture
- Reading a database's change log to stream changes to other systems.
- Row level security
- Database rules that limit which rows each user or tenant can see.
- Embedding
- A list of numbers that represents the meaning of text, images or other content.
- Vector search
- Finding items whose embeddings are closest in meaning to a query.
- pgvector
- A PostgreSQL extension for storing and searching vectors.
- Time series data
- Measurements recorded over time, such as metrics or sensor readings.
- OLTP
- Online transaction processing: the fast reads and writes of a live application.
- OLAP
- Online analytical processing: large queries for reports and analysis.
- Managed database
- A database service where the cloud provider runs patching, backups and failover.
- Security rules
- Firebase rules that decide who can read and write each document.
- Keyset pagination
- Paging through results using the last seen value instead of an offset, which stays fast on deep pages.
- Read replica
- A copy of a database used to serve read queries and reports so the primary handles fewer requests.