Telemetry
Interactive SaaS SQL Lab

Database reliability · Beginner

Audit database migration reliability

Did a release make database migrations less reliable?

Measure migration success, rollback behavior, and duration by application release.

Reviewed by the Telemetry product team on . Read-only SQL, connected-table grain, deterministic result, visualization, and interpretation boundaries. Review standards and ownership

Runs against one versioned 15-table dataset

Edit and execute the query locally in your browser, then download the same synthetic schema and rows for DuckDB.

Database reliabilityBeginner

Audit database migration reliability

Did a release make database migrations less reliable?

Measure migration success, rollback behavior, and duration by application release.

The dataset and query remain in this browser.

Published expected result

Migration success rate by release

releasemigration_runssuccessful_runsfailed_runssuccess_rate_pctaverage_duration_ms
2026.07.13301001,300
2026.07.2422501,450
2026.07.32201001,125

How to read the query

  • Treating rollbacks as unsuccessful makes the release-level reliability measure explicit.
  • Duration trends can reveal increasingly expensive schema changes before they fail.
  • The migration identifier remains available for drilling into individual executions.

Decisions the SQL cannot make

  1. 1Block promotion when a release contains an unexplained failed or rolled-back migration.
  2. 2Review long-running migrations for locking and deploy-window risk.
  3. 3Separate retry success from first-attempt success if your runner emits attempts.

Continue from this lesson