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.
| Measure | Result |
|---|---|
| Full load, including field-by-field verification | 1,420.9 s (1,408 records per second) |
| Rollback of the run | 396.9 s |
| Peak memory | 124 MB |
| Machine | One, with PostgreSQL on the same host |
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 type | Risk | Safer target |
|---|---|---|
| MySQL TINYINT(1) | Treated as a number | boolean |
| MySQL DATETIME | No time zone | timestamp, with the zone decided up front |
| FLOAT used for money | Rounding | numeric with fixed scale |
| Oracle NUMBER without precision | Unbounded | numeric with explicit precision |
| Zero dates (0000-00-00) | Invalid elsewhere | null, recorded as a decision |
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