what is SQL server latch? does is it slow down the performance of sql server

Antony Maxwin 281 Reputation points
2021-09-23T12:17:04.34+00:00

hi
what is sql server latch, does it slow down the performance of sql server?
i am attaching screenshot from one sql server and in this server the latch is high, does it affect the performance of server. how latch became high?134657-sql.jpg

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,142 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,665 questions
0 comments No comments
{count} votes

Accepted answer
  1. AmeliaGu-MSFT 13,986 Reputation points Microsoft Vendor
    2021-09-24T06:00:29.22+00:00

    Hi AntonyMaxwin-4065,

    Latches are lightweight synchronization primitives that are used by the SQL Server engine to guarantee consistency of in-memory structures including: index, data pages, and internal structures, such as non-leaf pages in a B-Tree. Latch contention occurs when multiple threads concurrently attempt to acquire incompatible latches to the same in-memory structure. Please refer to this doc to diagnose and resolve latch contention, which might be helpful.
    Best Regards,
    Amelia


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Tom Phillips 17,741 Reputation points
    2021-09-23T16:38:05.167+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.