Investigate migration differences and prove workload readiness
A migration is ready when its data means the same thing and its important workloads meet their requirements. A high match percentage and a fast demonstration query answer only small parts of those questions. This guide connects the current V2 SmartDiff results workflow to a practical Performance Analyzer investigation. The pair articles apply it to specific business incidents.
Start with a contract that makes differences interpretable
Record the source snapshot or reconciled change watermark, completed target load, tables or query pairs, column mappings, comparison direction and unique non-null business keys. Identify the grain: an order, an order line and a daily revenue total are three different comparisons. Check key uniqueness before running a keyed comparison; duplicate business keys are an acceptance failure, not a reason to arbitrarily discard rows.
Use Data Source Diff for source-faithful table pairs. Use Query Diff for reviewed projections or derived outputs, with equivalent predicates and explicit aliases. In Query Diff, Analyze previews inferred types and the first five sample rows; review mappings and select at least one key for each pair before execution. The preview does not validate the population. Metadata filters select objects, not a time-bounded set of rows.
Preserve raw values before adding normalization. For example, converting every timestamp to a date can hide a shift across midnight; trimming or lowercasing every identifier can merge distinct customers. Run the raw comparison, approve the semantic transformation, then compare the intended business representation separately. See coverage and precision boundaries.
Read SmartDiff results in layers

Actual product evidence from a SQL Server → PostgreSQL demo. It illustrates the shared results interface, not a benchmark of the warehouse pairs in this library.
- Establish coverage first. In Results, inspect Rows compared, Matches, Diffs, Accuracy, and the per-table results. Verify that the intended tables and partitions completed. Unknown or pending statistics are not a successful result.
- Separate identity from value differences. Source-only rows appear as Missing in target; target-only rows appear as New in target. The overall difference count already includes these categories. Do not add them to it a second time. A direction that excludes one side cannot establish bidirectional completeness.
- Use patterns to prioritize. Root cause clusters and detailed clusters group recurring difference labels or changed-column patterns. Applicable comparisons can classify nulls, string truncation, extra characters and rounding. Rows with the same combination of labels are grouped together; not every label applies to every type or comparison path.
- Inspect keyed examples. Select the affected table/query result. Use Diff by column, Only diffs, row search and Hide columns to narrow the view. Inline rendering highlights removed text in red and additions in green; side-by-side rendering helps compare raw values. Capture a business key and both values, not just a cluster name.
- Check the distribution. The Summary tab compares source and target value frequencies. Search, choose the side and filter to differences to identify repeated changes, such as an unexpected default date or a status appearing too often. Metadata provides another view of the compared structure.
- Retain evidence and rerun. Export the selected table's available Data, Summary or Metadata evidence as CSV/PDF. Correct the mapping or pipeline through its normal release process, then rerun the affected scope and the dependent business checks.
The phrase Root cause clusters names a product view; it does not prove why the pipeline changed the data. The summaries are deterministic counts and frequencies, not a verified generative-AI diagnosis. A repeated offset suggests a timezone issue only after you inspect types, session settings and transformation logic.
Counts are different from samples
The standard Polars comparison computes counts before retaining at most 1,000 sample rows per cluster. Displayed rows and ordinary exports therefore need not contain every discrepancy. Use the counts to estimate scale and the samples to investigate; obtain a full affected population through a suitably bounded source/target query when remediation requires every key. Do not extrapolate a sample's frequency to the full migration or use export row count as the number of failures.
Column-pattern counts may overlap: one order can have both a timestamp change and a rounded amount. Use one population denominator, distinguish rows from changed cells, and keep missing/new counts separate from the breakdown of changed fields.
Turn a cluster into a migration decision
Suppose a synthetic retail pilot compares a closed batch of 10,000 source orders. Inspection finds 40 source-only orders and 60 matched keys with changed fields. Among those 60, 50 have a timestamp difference, 20 have an amount difference, and 10 have both. The field counts total 70, but there are only 60 changed records. These are illustrative bookkeeping numbers, not captured product results or a promised UI denominator.
| Evidence | Hypothesis to test | Confirmation | Decision |
|---|---|---|---|
| 40 source keys absent from target | An incomplete batch or wrong predicate | Compare extraction manifest, load completion and the exact key set | Reload or repair scope; repeat completeness check |
| Timestamp differences cluster near day boundaries | A timezone was dropped or applied twice | Compare original instant, target type and session/conversion settings | Repair mapping; recheck daily reporting totals |
| Amount differences share a scale pattern | Precision lost in a target cast | Native exact-decimal checks around boundaries | Repair cast or record an approved business transformation |
| Target-only canceled orders | Delete events were not applied | Inspect source delete and target change-processing evidence | Repair delete handling and replay the bounded interval |
A useful summary says what was checked, what differed, why the explanation is supported, what remains unresolved and who decides. It does not simply paste an accuracy tile.
Example acceptance note: Orders, closed batch B17, mapping v3. Completeness blocked by 40 missing keys. Sixty matched keys differ; timestamp and amount cohorts overlap by ten. Samples and native checks support two mapping defects. Data engineering owns reload/conversion changes; finance owns exact totals. Recheck B17 and affected daily reports before cutover. Performance acceptance remains separate.
Maintain this project-level disposition record alongside the exported evidence. DataDios does not automatically turn a cluster into an approved exception or a cutover sign-off.
Establish a performance comparison that can be defended
A PostgreSQL point lookup, a Snowflake monthly scan and a Databricks transformation job serve different purposes. Choose a business workload, not matching SQL text: for example, “render the monthly revenue report with the same filters and output.” Keep a separate application-latency check if the source remains the transaction system.
Before moving consumers, define a test matrix:
| Control | What to record |
|---|---|
| Equivalent data | Accepted snapshot, row population, business grain and exact output checks |
| Workload | Named report/job, parameters, query version and returned result size |
| Demand | Single-user and representative concurrent-user runs; background ingestion and validation load |
| Resources | Source configuration, target warehouse/compute size and relevant limits |
| Cache | Separate warm and cold-start observations; record result-cache behavior |
| Timing | End-to-end elapsed time, execution time and queue/wait time, with units |
| Repetition | Multiple representative runs, errors, retries and tail behavior; one execution is not p95 |
| Cost | Comparable billing window, currency, concurrency and successful work completed |
The customer runs this benchmark through an approved test process. SmartDiff does not replay a workload, and Performance Analyzer does not automatically pair translated queries across engines. Maintain a small report-ID → source-query → target-query map to connect the evidence.
Use Performance Analyzer to explain the difference
Enable supported workload collection on each source and verify collection freshness and metric privileges. Use Performance Analyzer → Datasources and the available query/metric views to investigate the corresponding system and time range. Pin eligible graphs to a dashboard, labeling each with source and scope; see alerts and dashboards.
Existing PostgreSQL product evidence. Metric availability and time semantics differ by connector; this is not a cross-engine benchmark result.
Use source evidence to choose the next question: is the original database waiting or spending time executing a repeated report? Use target evidence to ask whether the converted query scans too much, queues behind other work or spills. A lower source load can be a successful offload even when target cost needs further tuning. Fix one hypothesis, repeat the same workload, and rerun correctness checks if the rewrite changed SQL or data layout.
PostgreSQL statement statistics are aggregated and have reset semantics; SQL Server cached-plan statistics disappear when the plan leaves the cache. Neither is a ready-made distribution of the same individual runs captured in a warehouse history. MySQL snapshot aggregates also need careful interpretation. Use controlled per-run timings for end-to-end comparisons and source telemetry for explanation. See PostgreSQL statement statistics and SQL Server cached query statistics.
Keep the connector-specific interpretation with each comparison:
| Source | Evidence boundary |
|---|---|
| PostgreSQL | Statement collection requires the relevant pg_stat_statements setup and privileges. Calls/execution deltas and sampled waits answer different questions; a maximum since statistics reset is not the maximum of only the selected rehearsal. |
| SQL Server | Collected daily DMV snapshots retain cached-plan counter semantics; they are not automatically differenced into interval measurements or individual executions. |
| MySQL | Readable Performance Schema data is required. Query-count, database-time and I/O snapshots need their units and aggregation checked. The maximum-time chart aggregates snapshot maxima; it is not a per-run maximum or p95 distribution. |
| Snowflake | Query-history evidence can expose execution, queue, scan, spill and cache behavior where collected. Warehouse-cost allocation supplies context, not an invoice for one query. |
For a review, manually pin eligible charts with a fixed incident or rehearsal window and explicit source labels. Check whether a dashboard-level date selection overrides the saved window. Collection and pinning do not provide automatic workload replay, query matching or equivalent cross-engine plans.
Redshift boundary: its connector is not currently enabled for direct SmartDiff comparison or the workload-collection workflow used here. Its pair guides use native reconciliation and AWS performance evidence, with DataDios supporting the eligible source-side investigation. Do not imply a unified Redshift Performance Analyzer dashboard exists just because a connection can be created.
Keep correctness and performance as two acceptance gates
A suggested report has two sections: data acceptance (scope, unresolved differences, exact totals and owner) and workload acceptance (named workload, demand, resources, measured latency/freshness/cost and owner). A fast query with wrong results fails. Correct rows with unacceptable reporting delay also fail. An enterprise can assign these gates to different teams; a small company can use one compact record and named reviewers.
Measure time to explain a discrepancy, repeated defects after a repair, reconciliation hours per wave, accepted workload latency and ongoing duplicate-platform cost. Clusters can reduce repetitive investigation, but the actual saving must be measured against the same scope and investigation standard.