How do you design a database migration rollback plan?
Prefer backward-compatible changes and maintain a tested recovery path. Some data transformations cannot be safely reversed, so a forward fix or restore ma
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 3289–3300 of 3610 questions
Prefer backward-compatible changes and maintain a tested recovery path. Some data transformations cannot be safely reversed, so a forward fix or restore ma
Normalized tables are better for structured relationships, constraints, joins, and querying individual attributes. JSON columns suit flexible or semi-struc
A projection/read model stores data shaped for queries and is updated from events. Include event IDs or versions to support idempotency and detect out-of-o
Each service should own its data contract and migrations. Other services should use APIs or events rather than directly modifying another service's tables.
Map where personal data lives, including primary tables, search indexes, caches, exports, logs, and backups. Apply deletion or anonymization under policy w
Test valid and invalid inserts, FK behavior, unique and check constraints, migration from prior versions, rollback/forward recovery, and performance with r
Split or partition only for a concrete need such as retention, workload isolation, or manageability. Vertical splitting separates rarely used or sensitive
INNER JOIN returns only rows with matching keys on both sides. LEFT JOIN returns every row from the left table and matching right-side rows, usin
A FULL OUTER JOIN returns matched rows plus unmatched rows from both inputs. It is useful for reconciliation, such as comparing two exports; supp
WHERE filters rows before grouping; HAVING filters groups after aggregation. Use WHERE for row predicates when possible to reduce the rows enteri
Window functions calculate across related rows while preserving each input row. GROUP BY collapses rows into groups, whereas a window aggregate o
A recursive CTE is useful for hierarchical or graph-like data, such as employee reporting trees or category paths. Include a termination conditio