Subsetting Data
Make a smaller copy of a database for development and tests, with every foreign key still pointing to an existing row.
Guides
-
Subset a Database: keep a fraction of every table, or only of the largest ones.
-
Filter Source Rows: keep rows by date, ID or any SQL condition.
-
Virtual Foreign Keys: add relationships the database doesn’t declare, so subsetting follows them.
Understand it
-
How Subsetting Works: why child tables shrink with their parents, and how cycles are resolved.