What is SQL Server latch-free architecture in In-Memory OLTP internals?
Updated May 17, 2026
Short answer
In-Memory OLTP eliminates locks and latches using optimistic concurrency and versioning structures.
Deep explanation
Hekaton (In-Memory OLTP) removes traditional locking mechanisms and replaces them with optimistic concurrency control using multi-version rows. Each row version contains timestamps and transaction metadata. Reads never block writes and vice versa. Indexes are memory-optimized (hash or range), and storage is managed through checkpoint files and delta files. This design minimizes contention and enables extreme concurrency.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro