FIX: Poor performance occurs when you run a query against columnstore in an RCSI-enabled database in SQL Server 2016

Applies to: SQL Server 2016 DeveloperSQL Server 2016 EnterpriseSQL Server 2016 Enterprise Core More


Consider the following scenario:

  • You have a Microsoft SQL Server 2016 database which contains columnstore indexes.
  • You enable Read Committed Snapshot Isolation (RCSI) at database level, or the database is acting as a readable secondary replica in an Availability Group (RCSI is enabled by default in this case).
  • You run read (SELECT) queries against columnstore index as INSERT statements occur on the same index.

In this scenario, you may notice poor performance in SQL Server 2016. Additionally, you may experience severe blocking and query waits on QUERY_TASK_ENQUEUE_MUTEX and ROWGROUP_VERSION.


This issue is fixed in the following cumulative update for SQL Server:

       Cumulative Update 3 for SQL Server 2016 Service Pack 2


As a workaround for this issue, you can drop the columnstore index on the table.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.


Learn about the terminology that Microsoft uses to describe software updates.