Migrating 2,000,000 records with zero data loss: a measured benchmark
Benchmark on generated data, measured 2026-11-28. Not a customer project: the full method and raw results are below so anyone can repeat it.
Short answer: 2,000,000 records moved from a CSV export into PostgreSQL in 23.7 min (1,408 records per second including field-level verification) on a single machine, with 0 errors, revenue reconciled to the cent, a delta pass that updated exactly the 1% that changed, and a rollback that left 0 rows.
What was migrated
A CRM export in the shape most systems produce: 1,666,667 contacts (name, email, phone, created date, link to an account) and 333,333 accounts (name, annual revenue with cents, created date written with a +05:30 time-zone offset). The target was PostgreSQL 16.16. Contacts were linked to their new account ids, amounts were stored as exact decimals, and every date-time was converted to UTC.
Results
| Records | Full load | Speed | Delta, no change | Delta, 1% changed | Rollback | Peak memory | All checks |
|---|---|---|---|---|---|---|---|
| 2,000,000 | 23.7 min | 1,408/s | 12.1 min | 19.3 min | 6.6 min | 124 MB | Pass |
What was checked, and what it found
| Records loaded | 2,000,000 of 2,000,000 |
|---|---|
| Load errors | 0 |
| Counts reconciled per object | Yes |
| Field-level verification | Passed (2,000,000 records compared) |
| Revenue total, source | 150329621981.86 |
| Revenue total, PostgreSQL | 150329621981.86 |
| Matches to the cent | Yes |
| Contacts that lost their account link | 0 |
| Delta pass, nothing changed: records written | 0 |
| Delta pass, 1% changed: updated / duplicates | 16,667 / 0 |
| Rows left after rollback | 0 |
Every check passed at every size. A migration is only reported as successful when the counts reconcile, a field-by-field comparison against the source passes and money totals match: a fast load that silently drops or changes records is a failed migration.
Why the delta pass matters
Large migrations are rarely one shot. The source keeps changing while the new system is prepared, so the final cut-over is a delta pass. Here a second pass over all 2,000,000 records recognised every unchanged record and wrote nothing; after changing 1% of the contacts, it updated exactly those 16,667 records and created no duplicates.
Machine and method
- One machine: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx, 8 threads, 14 GB RAM, Windows 11 (build 26300), Python 3.11.0.
- Destination: PostgreSQL 16.16 running in Docker on the same machine. The migration's own metadata store (id map, rollback journal) was the same server.
- Batches of 1,000 records; no tuning beyond the defaults; AI mapping off (fixed mapping), so runs are repeatable.
- Steps measured: full load with verification, delta pass with no changes, delta pass after changing every 100th contact, rollback of both runs.
Repeat it:
python -m aletheon bench --records 1666667 \ --dest postgresql+psycopg://USER:PASSWORD@HOST/DB --meta postgresql+psycopg://USER:PASSWORD@HOST/META_DB
Frequently asked questions
Can Aletheon migrate 2,000,000 records?
Yes. In this benchmark 2,000,000 of 2,000,000 records loaded into PostgreSQL in 23.7 min (1,408 records per second, verification included) on a 8-thread machine with 14 GB RAM, with 0 load errors.
How do you know nothing was lost?
Every run reconciles source and destination counts per object, verifies records field by field against the source, and checks money totals to the cent. Here the annual revenue total was 150329621981.86 in the source and 150329621981.86 in PostgreSQL, and 0 contacts lost their link to an account.
How long does a delta (incremental) pass take after the first load?
With nothing changed, 12.1 min: all 2,000,000 records were recognised as unchanged and 0 were written. With 1% changed (16,667 records), 19.3 min: exactly those were updated and 0 duplicates were created.
Can a migration of this size be rolled back?
Yes. Both runs were rolled back in 6.6 min, the update restored and every loaded record removed; 0 rows remained.
Is this a customer migration?
No. It is a benchmark on generated CRM data (accounts with revenue and dates with time-zone offsets, contacts linked to accounts), so it can be published in full and repeated by anyone with the command below.
How much memory does it need?
The engine streams records in batches of 1,000; peak memory for the whole 2,000,000-record job was 124 MB.
Limits of this benchmark
The source was a file export and the destination a database, so no vendor API rate limits applied. Migrations into SaaS systems (Salesforce, HubSpot, Odoo...) are paced by each vendor's API limits, which we follow; their throughput is lower and depends on the vendor plan. The data was generated, not a customer's.
See supported migrations · Pricing · Run a free 500-record sample