Skip to content

Commit 2db918f

Browse files
Merge pull request #295796 from dialmoth/docs-editor/sql-data-warehouse-tables-inde-1741203472
Update sql-data-warehouse-tables-index.md
2 parents 79b7aad + 1eded87 commit 2db918f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/synapse-analytics/sql-data-warehouse/sql-data-warehouse-tables-index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Indexing tables
33
description: Recommendations and examples for indexing tables in dedicated SQL pool.
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
6-
ms.date: 01/21/2025
6+
ms.date: 03/05/2025
77
ms.service: azure-synapse-analytics
88
ms.subservice: sql-dw
99
ms.topic: concept-article
@@ -194,6 +194,9 @@ If you have identified tables with poor segment quality, you want to identify th
194194

195195
These factors can cause a columnstore index to have significantly less than the optimal 1 million rows per row group. They can also cause rows to go to the delta row group instead of a compressed row group.
196196

197+
> [!NOTE]
198+
> Columnstore tables typically do not push data into a compressed columnstore segment until there are more than 1 million rows per table. If a table with a clustered columnstore index has many open rowgroups with a total number of rows that do not meet the threshold for compression (1 million rows), these rowgroups will remain open and be stored as row data. Consequently, this will increase the distribution database size as they are not compressed. Moreover, these open rowgroups will not benefit from the CCI and will require more resources to maintain. It may be advisable to use the [ALTER INDEX REORGANIZE](/sql/t-sql/statements/alter-index-transact-sql?view=azure-sqldw-latest&preserve-view=true#reorganize-a-columnstore-index).
199+
197200
### Memory pressure when index was built
198201

199202
The number of rows per compressed row group are directly related to the width of the row and the amount of memory available to process the row group. When rows are written to columnstore tables under memory pressure, columnstore segment quality may suffer. Therefore, the best practice is to give the session that is writing to your columnstore index tables access to as much memory as possible. Since there's a trade-off between memory and concurrency, the guidance on the right memory allocation depends on the data in each row of your table, the data warehouse units allocated to your system, and the number of concurrency slots you can give to the session that is writing data to your table.

0 commit comments

Comments
 (0)