# How Microsoft SQL learned to recover without undoing everything first

DevFeed: [How Microsoft SQL learned to recover without undoing everything first](<https://devfeed.tech/articles/how-microsoft-sql-learned-to-recover-without-undoing-everything-first-113097.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/azure-sql/your-server-wasnt-slow-it-was-waiting-we-fixed-it-with-constant-time-recovery/>)

Author: Anna Hoffman

Published: 2026-11-02T11:49:03Z

Content type: article

Language: en

Sources: [Azure SQL Dev Corner](<https://devfeed.tech/sources/azure-sql-dev-corner.md>)

Topics: [sql-server](<https://devfeed.tech/topics/sql-server.md>), [Azure SQL](<https://devfeed.tech/topics/azure-sql.md>), [database-optimization](<https://devfeed.tech/topics/database-optimization.md>)

Tags: [2019](<https://devfeed.tech/tags/2019.md>), [2022](<https://devfeed.tech/tags/2022.md>), [2025](<https://devfeed.tech/tags/2025.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [availability](<https://devfeed.tech/tags/availability.md>), [azure](<https://devfeed.tech/tags/azure.md>), [azure-sql](<https://devfeed.tech/tags/azure-sql.md>), [azure-sql-database](<https://devfeed.tech/tags/azure-sql-database.md>), [background](<https://devfeed.tech/tags/background.md>), [benefit](<https://devfeed.tech/tags/benefit.md>), [blog](<https://devfeed.tech/tags/blog.md>), [bulk-load](<https://devfeed.tech/tags/bulk-load.md>), [cleanup](<https://devfeed.tech/tags/cleanup.md>), [hyperscale](<https://devfeed.tech/tags/hyperscale.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [microsoft-sql](<https://devfeed.tech/tags/microsoft-sql.md>), [recover](<https://devfeed.tech/tags/recover.md>), [research](<https://devfeed.tech/tags/research.md>), [sql](<https://devfeed.tech/tags/sql.md>), [sql-server](<https://devfeed.tech/tags/sql-server.md>), [sql-server-2025](<https://devfeed.tech/tags/sql-server-2025.md>), [transaction](<https://devfeed.tech/tags/transaction.md>)

## AI overview

Accelerated Database Recovery (ADR), based on Constant Time Recovery, makes rollback and crash recovery largely independent of the amount of work in an uncommitted transaction. It uses a durable Persistent Version Store (PVS) to retain row versions; logical revert marks a transaction aborted so queries skip its versions and read earlier ones, while cleanup runs in the background. Operations that cannot be versioned use a small secondary log, the SLog. The article reports that Azure SQL Database recovery at the 99.999th percentile fell from over an hour to three minutes, and a 50-million-row delete's log use fell from 38 GB to 147 MB. The tradeoff included throughput reductions of 13.8% on TPC-C with in-row versioning and 2.4% on TPC-E. ADR is always on in Azure SQL Database; in SQL Server it is available since 2019 and off by default. The excerpt also describes later version-store cleanup improvements and ADR's role as a prerequisite for optimized locking.

## Source excerpt

Under the Hood: The Research Behind Microsoft SQL, part 2 Here's a scenario that used to be genuinely frightening: you kick off a bulk load of a few hundred million rows in a single transaction. Somewhere in the middle, the server goes down. Not because of your load, just an unlucky reboot. When SQL Server [...] The post How Microsoft SQL learned to recover without undoing everything first appeared first on Azure SQL Dev Corner.