AletheonAI Labs

Database migration to PostgreSQL, MySQL, SQL Server and Oracle: types, order and a measured 2M-record run

  • United States
  • United Kingdom
  • European Union
  • Canada
  • Australia
  • India
  • UAE

In short

A database migration is three jobs: map types so no value changes meaning, load tables parents-first so foreign keys hold, and prove the copy by comparing it with the source. For cut-over, run a full load while the application stays up, then a short delta pass for what changed. In a measured run, Aletheon loaded 2,000,000 records into PostgreSQL 16 in 1,420.9 seconds, 1,408 records per second, with field-by-field verification included.

Types are where values change silently

The dangerous differences are the quiet ones: a MySQL TINYINT(1) that is really a boolean, a DATETIME with no time zone landing in a column that has one, a money amount passing through a float. Decide each mapping explicitly and test it with the awkward values: nulls, zero dates, the largest numbers, text with emoji.

The measured benchmark

The numbers below are from one run on one machine, published with its method so it can be repeated. The source was a generated CRM export, not customer data.

MeasureResult
Full load, including field-by-field verification1,420.9 s (1,408 records per second)
Rollback of the run396.9 s
Peak memory124 MB
MachineOne, with PostgreSQL on the same host
2,000,000 records into PostgreSQL 16

Cut-over with a delta pass

Zero downtime is a property of your cut-over plan, not of a tool, and we do not promise it. What Aletheon provides is the delta pass: after the full load, a second pass recognises unchanged records, writes only what changed, and creates no duplicates. The window you need is the time that last pass takes plus your own checks. It does not do continuous replication or change data capture.

What is tested

PostgreSQL, MySQL, MariaDB and SQLite connectors are tested. SQL Server 2022, Oracle Database 23ai Free and MongoDB 7 have passed live runs covering load, verification, delta and rollback. BigQuery, Redshift, DB2 and similar engines need a driver installed and are marked Contact us. On databases, rollback is complete: updates are restored and inserted rows removed. Full results are in the benchmark write-up.

Source typeRiskSafer target
MySQL TINYINT(1)Treated as a numberboolean
MySQL DATETIMENo time zonetimestamp, with the zone decided up front
FLOAT used for moneyRoundingnumeric with fixed scale
Oracle NUMBER without precisionUnboundednumeric with explicit precision
Zero dates (0000-00-00)Invalid elsewherenull, recorded as a decision
Type mappings to decide explicitly

Questions people ask

How fast can Aletheon migrate a database?

The one measured figure is 2,000,000 records into PostgreSQL 16 in 1,420.9 seconds, 1,408 records per second including verification, on one machine. Other sizes, engines and hardware will differ.

Does Aletheon offer zero-downtime database migration?

It offers a full load followed by a delta pass, which keeps the cut-over window short. It does not do continuous replication, so some window is needed.

Can a database migration be rolled back?

Yes. On databases the rollback restores updated rows and removes inserted ones. In the benchmark, rolling back the 2,000,000-record run took 396.9 seconds.

Try it on your own data

Run the free sample, read the reconciliation report, roll it back if you like.

Read the full benchmark method
Start free sample

Keep reading

Contact us

SAP, multi-company Odoo or more than 2 million records?

Most migrations start with the free sample and need no call. For jobs above 2,000,000 records, SAP or multi-company ERP, or a pathway marked Contact us, tell us what you are moving and we will reply within one business day.

  • A reply from a person within one business day
  • A written plan and a price before any work starts
  • The same reconciliation report and rollback journal as every self-serve run
We reply within one business day, and use these details only to reply.