Scrivio Interview library
LeadershipPrincipal5 min read · updated 12 November 2026

Your organisation runs both MySQL and PostgreSQL. A proposal says to standardise on one engine, partly because developers keep applying advice from one engine's storage model to the other. How do you assess the proposal?

I would treat the proposal as a cost and risk decision, not a preference. The storage models really differ, so mixed estates need engine-specific guidance whatever we decide. Then I would count what running two engines costs us, compare it with the cost and risk of migrating each system, and most likely recommend one default engine for new systems while keeping the other where migration does not pay off, with a support plan and a long sunset, revisited with data.

Why this question is asked

Standardisation proposals sound obviously right: fewer tools, fewer skills, fewer mistakes. But a migration of production databases is one of the most expensive and risky projects an engineering organisation can start, and the benefits are often smaller than promised. Interviewers ask this leadership question to see whether we can separate the real problem, developers applying the wrong engine's advice, from the proposed solution, and decide with evidence. In this answer, we will look at why the storage models make advice non-transferable, count the cost of two engines, weigh migration cost, describe the middle path, and set up the decision so it can be revisited.

1Why Advice Does Not Transfer Between the Engines

The complaint in the proposal is real, and it is worth understanding before deciding anything. InnoDB stores rows in the primary key B-tree and keeps old row versions in an undo log. PostgreSQL stores rows in an unordered heap, writes a new tuple version on every update, and relies on vacuum to remove dead ones. These differences change practical advice. A random UUID primary key is very costly in InnoDB, where it scatters inserts across the table, and much less costly in PostgreSQL. In PostgreSQL, indexing a frequently updated column blocks HOT updates and creates bloat; in InnoDB the same index costs far less. Autovacuum tuning is a core PostgreSQL skill that has no direct InnoDB equivalent.

So part of the problem can be fixed without migrating anything: engine-specific guidelines, review checklists and training. If we standardise, we still need this guidance for the years the migration takes. That observation shrinks the benefit side of the proposal.

2Counting the Real Cost of Two Engines

Next we measure what the second engine actually costs, in money and in people. That includes tooling and monitoring (two sets of dashboards, exporters and alerts), backups and restore testing, upgrade work for two major-version cycles, security patching, on-call skills (every rotation needs someone who can handle both), and hiring. If we use managed services, some of this shrinks; if we run databases ourselves, it is larger.

We also look at incidents. If the last year's database incidents show that a third were caused by applying the wrong engine's practices, that is a measurable cost. If they show almost none, the proposal rests on a feeling rather than data.

Costs to compare
Keep both enginesMigrate to one
two monitoring and backup stacksrewrite SQL for dialect differences
two upgrade cycles per yearreplace engine-specific features (jsonb, PostGIS, JSON functions)
on-call must know bothrebuild replication, failover and CDC setups
engine-specific guidance neededmove and verify terabytes of data with little downtime
incidents from mixed advicerisk of regressions in query plans and locking behaviour

3Weighing the Migration Risk

For each system we estimate the migration honestly. SQL dialect differences touch more code than people expect: upsert syntax, date functions, case sensitivity rules, LIMIT and locking clauses, and the ORM's dialect behaviour. Extensions are the hardest part: a service built on PostGIS or on jsonb indexes has no simple MySQL equivalent, and a service that depends on MySQL-specific replication topologies needs a new design. Data volume decides the method, from a dump and restore for small databases to change data capture with a dual-write or cutover period for large ones. Each migration also needs performance testing, because plans and locking behave differently on the new engine.

Multiply that by the number of systems, and it often turns out that migrating everything costs several team-years, while the yearly cost of the second engine is a fraction of that.

4The Middle Path I Would Propose

In most organisations I would recommend choosing one default engine for new systems, picked by team skills, the features we use, and the managed offering we trust. Existing systems on the other engine stay where they are, with a named support plan: a supported version range, owners, monitoring standards and engine-specific guidelines. Systems migrate only when there is a reason that pays, such as a major rewrite, an end-of-life version, or a clear cost or reliability gain. Over a few years, the second engine shrinks naturally without a big-bang project.

This middle path also addresses the original complaint directly: guidance and reviews written for each engine, and new developers mostly learning one engine because new systems all use it.

Step throughDeciding per system
  1. Collect dataincidents, run cost, migration estimate
  2. New system?
    YesUse the default engineNoAssess the existing system
  3. Migration pays back within about 2 years?
    YesPlan the migrationNoKeep it with a support plan
  4. Revisit yearlymanaged offerings, skills and costs change

4 steps in order. Play them, or step through them one at a time.

5Deciding With Data and Revisiting

I would present the decision to engineering leadership as a short document with the numbers: incident causes, yearly run cost per engine, migration estimates for the top systems, and the recommendation. Then we revisit it once a year. Managed database offerings change, team skills change as people join and leave, and an engine we keep today might be worth migrating in two years when its systems are being rewritten anyway. A decision that records its assumptions can be changed calmly when they stop being true.

6Follow-up questions

What if leadership insists on a full standardisation anyway?

Then I would make it as safe as possible: order systems from the easiest and least critical to the hardest, set a realistic multi-year timeline, keep the remaining systems fully supported until each one moves, and define exit criteria for each migration. I would also be clear about the cost in roadmap time, so the trade-off is visible rather than hidden.

Which engine would you choose as the default?

It depends on what the organisation already knows and uses. If many teams rely on jsonb, PostGIS, rich indexing or extensions, PostgreSQL is a natural default. If most expertise, tooling and managed contracts are around MySQL, that may be the cheaper default. The choice matters less than having one default and clear guidance for both.

7Conclusion

In this answer, we assessed a proposal to standardise on one database engine. The storage models really differ, so engine-specific guidance is needed in any case. We counted the cost of running two engines and the cost and risk of migrating each system, including dialect, extensions, replication and data volume. The usual best outcome is a middle path: one default for new systems, the other kept with a support plan and migrated only when it pays, decided with incident and cost data and revisited regularly.

What to say in the interviewAbout 80 seconds aloud

Open with

I would first separate the problem from the solution. The problem is real: InnoDB has a clustered primary key and undo logs, PostgreSQL has heap tables, tuple versions and vacuum, so advice like key choice, which columns to index, or how to handle bloat really does not transfer.

Then, if they want more

But standardising does not fix that on its own, because any migration takes years, and during that time we need engine-specific guidance and reviews anyway. Then I would put numbers on both sides.

The cost of two engines is tooling, monitoring, backups, two upgrade cycles, on-call skills and hiring, plus any incidents caused by mixed-up advice, which I would check in the incident history. The cost of migrating is dialect changes, extensions such as PostGIS or jsonb, replication and CDC setups, data volume, and performance risk, per system.

Usually the answer is a middle path: one default engine for new systems, chosen by skills and features, while existing systems on the other engine stay with a support plan and named owners, and move only when a rewrite or end of life makes the migration pay.

I would write it up with the data, get agreement from engineering leadership, and revisit the decision once a year as managed offerings and team skills change.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your organisation runs both MySQL and PostgreSQL. A proposal says to standardise on one...": https://scrivio-interview-library.netlify.app/databases/indexing/5ee48a0fd0/