FIX: Slow performance in SQL Server 2012 or SQL Server 2014 when you build an index on a spatial data type of a large table
Content provided by Microsoft
Applies to: SQL Server 2012 DeveloperSQL Server 2012 EnterpriseSQL Server 2012 StandardSQL Server 2014 DeveloperSQL Server 2014 DeveloperSQL Server 2014 EnterpriseSQL Server 2014 EnterpriseSQL Server 2014 StandardSQL Server 2014 StandardMore
When you try to build an index (by using CREATE INDEX or ALTER INDEX) on a spatial data type of a large table, Microsoft SQL Server 2012 or SQL Server 2014 may perform poorly. You can find many spinlock contentions on SOS_CACHESTORE and SOS_SELIST_SIZED_SLOCK.
Note This issue typically occurs when there are many parallel spatial data operations.
The issue was first fixed in the following cumulative update of SQL Server. After you apply the hotfix, you have to enable a new trace flag 6530 that is introduced for this hotfix.
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server: