concept most latch contention in category sql
appears as: most latch contention, most latch contention

This is an excerpt from Manning's book SQL Server DMVs in Action: Better Queries with Dynamic Management Views.
The script we use to find the indexes with most latch contention follows.
Listing 9.12. Indexes with the most latch contention
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED SELECT TOP 20 x.name AS SchemaName , OBJECT_NAME(s.object_id) AS TableName , i.name AS IndexName , s.page_latch_wait_in_ms , s.page_latch_wait_count FROM sys.dm_db_index_operational_stats(db_ID(), NULL, NULL, NULL) s INNER JOIN sys.objects o ON s.object_id = o.object_id INNER JOIN sys.indexes i ON s.index_id = i.index_id AND i.object_id = o.object_id INNER JOIN sys.schemas x ON x.schema_id = o.schema_id WHERE s.page_latch_wait_in_ms > 0 AND o.is_ms_shipped = 0 ORDER BY s.page_latch_wait_in_ms DESC