ContentsAI data migration

Guide · AI data migration

What an AI can do

With the pattern of this guide and a tool that runs the build, an AI can do a large part of the work of a migration. Convago is that tool for this guide: it runs each SQL file and keeps the counts. This page lists that work, and shows what stays with people.

Profile the sourceProfile each source table: how full each field is, and what its values look like.
Draft the requirementsRead the transcript of a meeting, and write each requirement with the words it came from.
Build the transformationsTake the mappings of the analyst, and write the SQL that converts each table.
Prepare the value mappingList the source values that still need a decision, the most used first, and propose a target value for each.
Write the checksTurn the rules of the target into checks on each row.
Run and measureRun the SQL and read the result: the rows in scope, loaded and rejected, the problems by cause, and the totals.
Keep up with changeApply a changed mapping or requirement, run again, and report what moved.
ReportSay where the work stands and what to do next, and write the run report.

What stays with people What a value means · what is in scope · the totals to match · when data is sent · when to cut over.

The same picture, as text
 WITH THE PATTERN AND WITH CONVAGO, AN AI CAN

 profile the source           profile each source table: how full each field is, and what its values look like
 draft the requirements       read the transcript of a meeting, and write each requirement with the words it came from
 build the transformations    take the mappings of the analyst, and write the SQL that converts each table
 prepare the value mapping    list the source values that still need a decision, the most used first,
                              and propose a target value for each
 write the checks             turn the rules of the target into checks on each row
 run and measure              run the SQL and read the result: the rows in scope, loaded and rejected,
                              the problems by cause, and the totals
 keep up with change          apply a changed mapping or requirement, run again, and report what moved
 report                       say where the work stands and what to do next, and write the run report

 WHAT STAYS WITH PEOPLE       what a value means · what is in scope · the totals to match ·
                              when data is sent · when to cut over

Two of these are repeated for every table, and again after every change. The first is building the transformations: turning the mappings of the analyst into SQL, table after table. The second is keeping up with change, because the mappings and the requirements go on changing while the load is built, and each change has to be made, run and measured. An AI that works with a tool that runs the build and returns the counts can do both. It makes the change, runs it, and reads the same measures that the project is run on: the rows that loaded, the rows that were rejected and why, and the totals. So a change is measured as well as made. The AI writes the checks as well as the SQL, so its work is not judged by its own checks alone: the totals that the load must match come from the business. The page Team composition shows what this does to the size of a team.

The AI works where the developer works, for example as an assistant in VS Code, and with the same commands. The page Working with an AI says how to connect it.

Who does what

The AIWrites, proposes and starts each run
  • Reads the instructions in the migration folder.
  • Looks at what is in each source table.
  • Writes the SQL and the checks, as files.
  • Proposes a mapping, and says why.
  • Types the commands of Convago.
  • Reports what the result shows.
ConvagoRuns the SQL and counts
  • Runs each SQL file on your computer.
  • Flags each row that breaks a check.
  • Counts the rows: in scope, loaded, rejected.
  • Shows the rows, the checks and the counts.
  • Keeps a log of each run.
  • Keeps the keys and the decisions.
PeopleDecide The business
  • Which target value a source value becomes.
  • The totals that the loaded data must match.
The project
  • What is in scope.
  • When data is sent to the new system.
  • When to cut over.

By hand, too. A person can do the work of the AI by hand, with the same commands.

More