ContentsLifecycle
2AI data migration
5Lifecycle
7Playbooks
Guide · Lifecycle
Domain, package, table
The work of a migration is organised at three levels, and each level has its own job: tables are built, packages are checked, and domains group the whole.
Also called "a data domain" or "a subject area" · "a work package" or "a migration object". Terminology→
The three levels
The levels, in an example
The journey of a table
Click a step.
The journey of a package
What comes back: the field mappings and the rulesthe validation samplesreports from the old system, as at a known daterecord counts
The three subjects are examples.
The same picture, as text
THE THREE LEVELS
1 DOMAIN a grouping: one package, or a set of packages how you look at the whole
2 PACKAGE the smallest set of tables that makes sense what goes to the business,
to migrate a piece of data and comes back
3 TABLE the unit of technical work what the developer builds
THE LEVELS, IN THREE EXAMPLES
customer 1 domain · 1 package · 1 table
inventory 1 domain · 1 package · 3 tables
sales 1 domain · 2 packages · 3 tables
THE JOURNEY OF A TABLE
first cut ──► package meeting ──► evidence back ──► code locked ──► signed off
└── value mapping, with the business, runs beside it
first cut = the first build of a table, before the meeting
THE JOURNEY OF A PACKAGE
goes out to the business ──► the business holds it ──► it comes back with all its parts: done
what comes back: the field mappings and the rules · the validation samples ·
reports from the old system, as at a known date · record counts
The three subjects are examples.Why
- Build by tablePlan the work and build it table by table. In a larger unit, a person cannot see what is finished and what is not.
- Check by packageGive the business a set of tables that makes sense together. It checks them together. A table that holds only part of a record, such as invoice lines without their header, is hard to judge right or wrong.
- Group by domainWhen there are many tables, use one grouping for every list: the tables, the mappings, the problems and the totals. Without one grouping, each list is in its own order, and nobody sees the whole.
An invoice is in two tables: the header and the lines. The business cannot check the header without the lines. So the two tables are one package.
How
- List the tables to fillStart from the target. Know every table that must be filled.
- Build in the order of dependencyReference data first, then the masters, then the transactions, because a row needs the records that it points at: an invoice needs its customer.
- Give a package a return dateSet the date when the package comes back. A week, as an example. If the time is not enough, find what is holding the package up. A long list of values is not a reason, because the value mapping runs beside the package.
- Give a package a "done"A package is done when it is back with all its parts. The value mapping, which says what each source value becomes in the target, is not one of the parts: it goes on beside the package. A package can be changed after that, as a new revision.
- Name an ownerGive each domain an owner in the business, who holds its packages until they are back. On a small job, one person can own them all. On a larger one, a business analyst leads each package and keeps it moving, and the owner supplies the answers.
- Lock on the samplesLock the code when the table agrees with the validation samples. The value mapping goes on beside it.
- A domain when you need oneA small job needs no grouping. Add domains when there are too many tables to read as one list. One table can be its own package, and its own domain.
On one migration the business had about 10,000 values to map. The code agreed with the validation samples early, and it was locked then. The mapping went on for weeks after. So the code is locked on the samples, not on the mapping.