COMMIT_TABLE Wait Type in SQL Server

⏳Part of the SQL Server Wait Types Library, every wait type explained.Related deep dive: LCK_M_X, LCK_M_S, and LCK_M_U Wait TypesRelated pillar: Performance & Troubleshooting

Is It a Problem?

It can be, though nothing documents it. The name ties it to the commit table that Change Tracking keeps, so the setting where it is plausible is Change Tracking on many tables with a stream of small transactions changing them. That is an inference from the name, not documented behaviour. It was zero on our SQL Server 2025 lab, which has no Change Tracking. Get Wait Statistics does not filter it out, so if it ranks, you will see it.


What It Means

Microsoft lists it as internal use only. The commit table it is named after is Change Tracking’s record of committed transactions: sys.dm_tran_commit_table returns one row for each committed transaction that changed a tracked table. Which code paths wait on it is not documented, so read the wait as a pointer to Change Tracking rather than a diagnosis. On an instance without Change Tracking, expect it at or near zero, as it was on our lab.


When It Does Matter

When it ranks, look at Change Tracking’s scope. See which databases use it and how long they keep history:

SELECT
    DB_NAME(d.database_id) AS database_name,
    d.retention_period,
    d.retention_period_units_desc,
    d.is_auto_cleanup_on
FROM sys.change_tracking_databases AS d;

Then, in each of those databases, which tables are tracked:

SELECT
    OBJECT_SCHEMA_NAME(object_id) AS schema_name,
    OBJECT_NAME(object_id) AS table_name,
    is_track_columns_updated_on
FROM sys.change_tracking_tables;

Ask which tables genuinely need it, keep the retention period as short as the consumers allow, and batch small updates where you can. The baseline to monitor is the size of the commit table over time, through sys.dm_tran_commit_table; one that keeps growing means cleanup is not keeping up.


Where To Go Next

COMMIT_TABLE points at Change Tracking. If you are chasing a real problem, start with the waits that cost you time.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *