No video

SQL Server 2022: System Page Latch Concurrency Enhancements (Ep. 6) | Data Exposed

  Рет қаралды 4,104

Microsoft Developer

Microsoft Developer

Күн бұрын

Over the past several SQL Server releases, Microsoft has improved the concurrency and scalability of the tempdb database. Starting in SQL Server 2016 several improvements address best practices in the setup process, i.e. when there are multiple tempdb data files all files autogrow and grow by the same amount.
Additionally, starting in SQL Server 2019 we added the memory optimized metadata capability to tempdb and eliminated most PFS contention with concurrent PFS updates.
In SQL Server 2022 we are now addressing another common area of contention by introducing concurrent GAM and SGAM updates.
In previous releases, we may witness GAM contention different threads want to allocate or deallocate extents represented on the same GAM pages. Because of this contention, throughput is decreased and workloads that require many updates to the GAM page will take longer to complete. This is due to the workload volume and the use of repetitive create-and-drop operations, table variables, worktables that are associated with CURSORS, ORDER BYs, GROUP BYs, and work files that are associated with HASH PLANS.
The Concurrent GAM Updates feature in SQL Server 2022 adds the concurrent GAM and SGAM updates capability to avoid tempdb contention.
With GAM and SGAM contention being addressed, customer workloads will be much more scalable and will provide even better throughput.
SQL Server has improved tempdb in every single release and SQL Server 2022 is no exception.
0:00 Introduction
2:21 tempdb Performance Critical for Scalability
3:48 What is stored in tempdb?
6:30 Traditional tempdb Best Practices
7:40 tempdb Performance Critical for Scalability
13:54 Demo: System Page Latch Concurrency Enhancements
19:45 Getting started
✔️ Resources:
tempdb database: docs.microsoft...
Recommendations to reduce allocation contention in SQL Server tempdb database: docs.microsoft...
Learn more about SQL Server 2022​: aka.ms/sqlserv...
Register to apply for the SQL Server 2022 Early Adoption Program and stay informed: aka.ms/EAPSignup
Watch technical deep-dives on SQL Server 2022:​ aka.ms/sqlserv...
📝 SQL Server 2022 Preview Playlist: aka.ms/dataexpo...
📌 Let's connect:
Twitter: Anna Hoffman, / analyticanna
Twitter: David Pless, / dpless
Twitter: AzureSQL, aka.ms/azuresqltw
🔔 Subscribe to our channels for even more SQL tips:
Microsoft Azure SQL: aka.ms/msazure...
Microsoft SQL Server: aka.ms/mssqlse...
Microsoft Developer: aka.ms/microso...
#AzureSQL #SQLServer #SQLServer2022

Пікірлер: 5
@SanataniHindu5165
@SanataniHindu5165 Жыл бұрын
Thanks Anna and David for sharing this video. 👏
@mrfuzztone
@mrfuzztone 2 жыл бұрын
Is there a link to information on the script used by David Pless to test the contention and the diagnostic query? I didn't hear it mentioned what was causing the contention in the test script. Maybe I missed it. Temp tables, sorts, other ?
@davidlean8674
@davidlean8674 Жыл бұрын
Maybe SQL2022 has reduced the benefit of having many files on the same drive. But there is still a benefit to having many files spread over many windows filesystems (drive letters). Even if they all blend back into the same switch fabric & data store.
@TheGodFatherItalian
@TheGodFatherItalian 2 жыл бұрын
Hello Anna. Hope you are well. We are running SQL Server 2016 SP3 with multiple TEMPDB files. We are seeing GAM contention on one of the many TEMPDB files. Why isn't the engine using the GAM within each TEMPDB file for this particular process? I heard there was a bug in the SP for this version of SQL Server.
@mrfuzztone
@mrfuzztone 2 жыл бұрын
are all the tempdb files equal size?
SQL Server 2022 Preview Storage Engine Capabilities (Ep. 4) | Data Exposed
17:52
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 63 МЛН
小丑和奶奶被吓到了#小丑#家庭#搞笑
00:15
家庭搞笑日记
Рет қаралды 7 МЛН
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 352 М.
Introduction to SQL Server 2022 Preview (Ep.1) | Data Exposed
13:33
Microsoft Developer
Рет қаралды 29 М.
Database Indexing for Dumb Developers
15:59
Laith Academy
Рет қаралды 51 М.
Which Database Model to Choose?
24:38
High-Performance Programming
Рет қаралды 50 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
It Just Runs Faster: SQL Server 2019 TempDB Improvements | Data Exposed
8:24
What's new in SQL Server 2022
13:29
Microsoft Mechanics
Рет қаралды 66 М.