Compatibility, Data Migration and Deployment Models

IB Computer Science · System Fundamentals

Compatibility problems are organisational before they are technical. When two systems must work together — a merged company's two payroll systems, a new stock system and an old accounting package — incompatibility appears at several levels. Hardware: the new software needs more memory or a newer processor than existing machines have. Software: different operating systems, or a program that needs a library version that breaks another program. Data: different file formats, different field definitions (is a customer identified by an email or by a number?), different date conventions (03/04/2025 is 3 April in one country and 4 March in another), and different character encodings, so that Vietnamese names lose their diacritics. Business rules: one system rounds tax up, the other rounds to nearest. Data and rule incompatibilities are the expensive ones because they are invisible until a report is wrong. Solutions include converting to open standards, writing an interface layer that translates between the two, or, when nothing else works, replacing one system — which is the origin of most migrations.

Data migration. Moving data from an old system to a new one is a five-step process: extract from the old system; clean (remove duplicates, fill or flag missing values, correct spellings); transform to the new structure, types and encoding; load into the new system in logged batches; and reconcile, checking not just record counts but totals (money, balances) and hand-checked samples. The classic failures are date-order and encoding errors in transformation, child records loaded before parent records so that they become orphans, and skipping reconciliation. Three rules protect the organisation: the old system is only ever read, never modified, so the original survives; the whole process is rehearsed on a copy before the real day, timing it and counting errors; and data entry into the old system is frozen during migration, or the difference must be migrated afterwards. Data is the one asset of the old system that cannot be bought again.

Local installation versus software as a service. A locally installed system means buying servers and licences up front, then paying little; the organisation keeps its data in-house, patches and backs up itself, can customise freely, and needs its own technical staff. Software as a service (SaaS) means renting: low start-up cost, a monthly fee that never ends, and the provider handles patches, backups and upgrades — on the provider's schedule, not the customer's. Data may sit in another country, which matters legally for health, financial and citizen data; the system stops when the internet does; and the customer depends on a provider that may raise prices or close, so the ability to export data is critical. The cost curves cross around year three to five, but cost is one line in an evaluation, not the answer. The decisive questions are whether law requires data to stay in the country, whether the organisation can support technical staff, and what happens if the provider disappears. Risk does not vanish in the cloud; it changes owner and changes form.

DATA MIGRATION: FIVE STEPS AND WHERE IT BREAKS 1. EXTRACT read from old system closed format? 2. CLEAN duplicates, gaps, misspellings 3. TRANSFORM change structure, types, encoding 4. LOAD write to new system in batches, with a log 5. RECONCILE counts, totals, sample against old system TYPICAL ERRORS old system has no export function structure documentation has been lost TYPICAL ERRORS "Nguyen Van A" và "NGUYEN VAN A" is 2 people? empty cell means 0 or not yet entered? TYPICAL ERRORS 03/04/2025 là 3 tháng 4 hay 4 tháng 3? accents lost due to wrong encoding TYPICAL ERRORS child records loaded first parent record → orphan fails midway, unknown where it stopped STEP OFTEN SKIPPED equal record counts not enough: totals of money, balances must match + manual sample check THREE PRINCIPLES TO AVOID LOSING DATA 1. The old system is READ-ONLY, never modified — the original stays intact to return to if it fails 2. Run the whole process on a copy BEFORE the changeover day, measure the time and count the errors 3. Freeze data entry on the old system during the move — or move the difference afterward data is the one thing from the old system the organization CANNOT buy back
The figure shows the five steps of a data migration from the old system to the new, with the typical error at each step — because exam questions about data migration almost always ask about the errors rather than the process. At the extraction step, the old system may have no export function and the documentation of the data structure has been lost along with the person who wrote it. At the cleaning step, the same person appears twice because of different capitalization, and an empty cell is unclear whether it means zero or not yet entered. At the transformation step, dates written under two different conventions get swapped, and Vietnamese text loses its accents because of the wrong character encoding — these are the two errors asked about most often. At the loading step, child records loaded before parent records become orphans, and if it fails midway you do not know how far it got without a log. The reconciliation step, shown in a different color, is the one often skipped: equal record counts are not enough, the totals of money or balances must also match and a sample must be checked by hand. The box at the bottom states three principles: the old system is read-only so the original stays intact, run the whole process on a copy before the changeover day, and freeze data entry during the move. The last line is the reason everything above matters: data is the one asset of the old system that the organization cannot buy back.

Worked example: Example 1 — finding the errors in a data migration plan

A hospital is moving 400,000 patient records from the old system to a new one. The plan: on Friday evening export everything to a CSV file, on Saturday evening load it into the new system, on Sunday morning check that the record counts are equal, then open it for use on Monday. The old system still admits emergency patients over the weekend. Point out the errors and fix the plan.

Solution

Error 1 — no cleaning and transformation step. The plan goes straight from export to load. With 400,000 records accumulated over many years, there are certainly duplicate patients because of different spellings of names, dates of birth in several formats, and diagnosis code fields in the old standard. Loading directly will bring all the junk into the new system, where it is much harder to fix.

Error 2 — CSV loses information. CSV does not preserve data types, breaks easily when a name contains a comma, and if exported in the wrong encoding, Vietnamese names lose their accents en masse. The export should use a structured format and the encoding should be checked on a sample first.

Error 3 — no freeze on data entry. Emergency patients over the weekend are recorded in the old system after the export, so on Monday morning the new system lacks precisely the most critical cases. Either switch the old system to read-only and record emergencies on paper with a procedure for re-entering them, or plan to move the difference on Monday morning before opening.

Error 4 — reconciliation only counts records. Equal record counts can still hide entirely wrong content — every date of birth could have month and day swapped and the count would still match. Checkable totals must also be matched (records by ward, by birth year) and a random sample checked by hand, prioritizing records with drug allergies because errors there can kill.

Error 5 — never tried out. Nobody knows how long loading 400,000 records takes; if it takes 30 hours, the one-night plan collapses. The whole process must be run on a copy at least once beforehand, measuring the time and counting the errors.

The corrected plan. Trial run on a copy two weeks earlier; fix the cleaning rules from the trial results; on the real day: freeze the old system on Friday evening, extract and transform using the scripts already tested, load in batches with a log, reconcile with totals and a manual sample on Sunday, and keep the old system read-only in parallel for at least a month for lookup and to go back to if needed.

Worked example: Example 2 — advising a school on on-premises or cloud

A school of 1,200 students needs a system for managing grades and attendance. Option A: buy a server and software, 40,000 dollars up front, 3,000 dollars per year for maintenance. Option B: rent a cloud service at 12,000 dollars per year, with data stored abroad. The school has one technical staff member who does the job part-time. Give advice.

Solution

Cost — do the calculation and then put it in its proper place. After 5 years: A = 40,000 + 5 × 3,000 = 55,000; B = 5 × 12,000 = 60,000. After 8 years: A = 64,000; B = 96,000. The break-even point is around year 4.5. In money terms, A is cheaper if the school uses the system long enough — but A's figure assumes the server does not fail, the software needs no major upgrade, and someone does the patching and backups for free. That last assumption is the weak spot.

Technical capability — the deciding factor here. A part-time staff member cannot teach and also patch security, run nightly backups, restore when a disk fails, and be on call when the system goes down in the middle of exams. With option A, all operational risk sits on one person; when that person leaves, the school loses its knowledge of the system as well. Option B transfers those jobs to a provider with a dedicated team. This is the main reason to lean toward B for a small school, and the answer must say clearly that this reason matters more than the 5,000-dollar difference.

Data stored abroad — check the law before doing anything else. Grades and attendance of minors are sensitive personal data. If domestic law requires citizens' data to be stored in the country, B is ruled out at once regardless of cost, or a provider with servers in the country must be chosen. If the law allows it, the school still needs a contract stating who owns the data and the security commitments.

Dependency risk — a mandatory condition before signing. The school must have the right to export all of its data in an open format at any time, so that if the provider doubles its prices or closes down it does not lose 8 years of records. It is also worth asking: if internet access is lost during exam hours, how is attendance taken?

Recommendation. Choose B with three conditions: the provider complies with the law on where data is stored, the contract includes the right to export data in an open format, and the school keeps a periodic backup under its own control. The deciding reason is technical capability, not price. A large school with its own technical department could reasonably choose A — the conclusion depends on the organization.

Common mistake

Trap 1 — treating compatibility as only a matter of hardware and operating system. The most expensive kinds are data and business rules, because they are invisible until a report is wrong.
Trap 2 — reconciling by counting records. Equal counts can still hide entirely wrong content; totals must match and a sample must be checked by hand.
Trap 3 — choosing cloud or on-premises by cost. Cost is one line; the law on where data is stored, technical capability and dependency risk are the questions that decide.

Key takeaway

Lesson 3 summary. Four things to take into the exam. One, the four layers of compatibility: hardware, software, data, rules — the last two are the most expensive. Two, the five steps of data migration and three classic errors: dates and encoding, orphan records, skipping reconciliation. Three, old system read-only, trial run on a copy, freeze data entry. Four, the cloud changes who holds the risk rather than removing it, and the right to export data is a mandatory condition.

← Human Interaction, Testing and Deployment · All IB Computer Science lessons · Practice IB Computer Science questions (free, instant scoring) · Stakeholders, Documentation, Training and the Social Impact of Systems →