I started a catalog prototype with PostgreSQL and indexed relationships. A question I needed it to answer was whether a particular handle fit a particular vehicle configuration. Given the handle and the configuration, the lookup had a narrow job. Adding a second database would have put more work on the team before I had a query that justified it.

The next question was harder. If the handle was unavailable, could we follow documented replacement links, find the compatible options, and explain why each one qualified? That query gives the database room to do much more work, even if it eventually returns a single part. It gave me a better way to ask when I should reconsider the original choice.

Thesis: Let the shape of the workload and the operating limits determine when a second database earns its place.

Why now: A shallow query that works at prototype scale can coexist with a later traversal that disrupts other work.

Who should care: Teams choosing a database for connected product or operational data.

Bottom line: Agree what evidence would change the decision before running either engine.

Two questions that happen to use the same catalog

In a fictional catalog, the shallow query is “Does this exact left-front handle fit a 2018 Model Q Touring?” Resolve the part in its identifier namespace and check for the application. If the data can’t establish trim or side, the answer should reflect that. A small, selective lookup is a good first instrument for the job.

The second query starts with an old identifier and follows a chain of documented supersessions. There may be several branches. Some descendants may fit the vehicle yet require work the buyer ruled out. The query must preserve link direction, prevent cycles, apply constraints, and return the path that supports the recommendation. Each extra step can expand the number of intermediate candidates. A dense neighborhood can make one starting part costly even when most lookups remain cheap.

PostgreSQL can express recursive queries and show how it planned them. I’d inspect representative plans and compare actual execution before calling the engine the bottleneck. A query exploring too many paths or filtering late can be the first thing to fix. If the valid workload still creates uneven tail latency or interferes with writes, I have a testable reason to look elsewhere. PostgreSQL recursive queries · PostgreSQL EXPLAIN documentation

Test the database you’d actually operate

A fair test gives both implementations the same records, allowed paths, result semantics, and CPU, memory, and storage budget. Generate representative relationship density, including a few highly connected nodes and uneven traffic across the graph. Keep direction, depth limits, and the evidence returned in the answer identical. If one engine gives me a candidate and the other gives me the candidate plus its proof, I’m timing different work.

TestWhat to hold fixedWhat would change my mind
Known part and direct fitmentSame keys, application rules, and returned evidenceA candidate engine needs to stay within the existing lookup budget.
Bounded replacement traversalSame dense and sparse neighborhoods, hop limits, cycle policy, and returned pathsCompare p95 and p99 with enough runs, separately for ordinary and highly connected starts.
Reads during catalog updatesSame import volume, update pattern, query mix, and freshness requirementA candidate needs to stay within write and freshness budgets while reads are under pressure.
Backup and recoveryEquivalent data volume and agreed recovery objectivesRestore to an empty environment and verify data, query results, and time to resume service. Include work required to rebuild any projection.

This is a benchmark and operating plan. It specifies the conditions that could justify a database change. It contains no database performance results or migration claims.

For example, suppose a team sets a 250 ms p95 budget for the buyer-facing multi-hop query during imports. That number is illustrative. If three representative mixed-load runs with enough requests to estimate the tails put the tuned PostgreSQL implementation over budget and a dedicated engine stays under budget with equivalent results, I’d approve a bounded evaluation of the candidate. It also needs satisfactory write throughput, freshness, and a recovery drill. I’d only consider introducing it into the production design once those gates pass and the team accepts the ongoing operating cost.

I’d distinguish a read projection from a change in the system of record. A projection can answer the narrow traversal workload while the canonical records remain where they are. It adds synchronization and recovery questions. A primary-store migration adds still more, including what to do with writes during cutover and how to roll back. The benchmark should inform the scope of that decision.

What transfers

Ask the team to name the query that the incumbent can’t serve within its budget and the conditions under which it fails. Then ask how the alternative would be restored on a bad day. For the engineer, translate both answers into a fixture with the same queries and expected results on each engine.

Try the table with one shallow query and one difficult query your users actually need. If either one changes when you switch products, agree on the semantics before you start timing. For the related question of what each data relationship is allowed to prove, see Every System Is a Trust Graph.