Skip to content

Commit fe0dfc7

Browse files
authored
Merge pull request #21497 from WilliamAntonRohm/issue-7314
sql-docs/issues/7314 -- update image for Dark theme
2 parents 42ca534 + 166f06d commit fe0dfc7

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/relational-databases/indexes/columnstore-indexes-data-loading-guidance.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ Options and recommendations for loading data into a columnstore index by using t
2626

2727
To perform a bulk load, you can use [bcp Utility](../../tools/bcp-utility.md), [Integration Services](../../integration-services/sql-server-integration-services.md), or select rows from a staging table.
2828

29-
![Loading into a clustered columnstore index](../../relational-databases/indexes/media/sql-server-pdw-columnstore-loadprocess.gif "Loading into a clustered columnstore index")
29+
![Loading into a clustered columnstore index](../../relational-databases/indexes/media/sql-server-pdw-columnstore-load-process.png "Loading into a clustered columnstore index")
3030

3131
As the diagram suggests, a bulk load:
3232

3333
- Does not pre-sort the data. Data is inserted into rowgroups in the order it is received.
34-
- If the batch size is >= 102400, the rows are directly into the compressed rowgroups. It is recommended that you choose a batch size >=102400 for efficient bulk import because you can avoid moving data rows to a delta rowgroups before the rows are eventually moved to compressed rowgroups by a background thread, Tuple mover (TM).
34+
- If the batch size is >= 102400, the rows are directly into the compressed rowgroups. It is recommended that you choose a batch size >=102400 for efficient bulk import because you can avoid moving data rows to delta rowgroups before the rows are eventually moved to compressed rowgroups by a background thread, Tuple mover (TM).
3535
- If the batch size < 102,400 or if the remaining rows are < 102,400, the rows are loaded into delta rowgroups.
3636

3737
> [!NOTE]
@@ -92,9 +92,9 @@ SELECT col1 /* include actual list of columns in place of col1*/
9292
FROM [<Staging Table>]
9393
```
9494

95-
There are following optimizations available when loading into clustered columnstore index from staging table:
96-
- **Log Optimization:** Reduced logging when the data is loaded into compressed rowgroup.
97-
- **Locking Optimization:** When loading into compressed rowgroup, the X lock on rowgroup is acquired. However, with delta rowgroup, an X lock is acquired at rowgroup but [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] still locks the locks PAGE/EXTENT because X rowgroup lock is not part of locking hierarchy.
95+
There are following optimizations available when loading into a clustered columnstore index from staging table:
96+
- **Log Optimization:** Reduced logging when the data is loaded into a compressed rowgroup.
97+
- **Locking Optimization:** When loading into a compressed rowgroup, the X lock on rowgroup is acquired. However, with delta rowgroup, an X lock is acquired at rowgroup but [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] still locks the locks PAGE/EXTENT because X rowgroup lock is not part of locking hierarchy.
9898

9999
If you have one or more nonclustered indexes, there is no locking or logging optimization for the index itself, but the optimizations on the clustered columnstore index as described above are still there.
100100

@@ -115,7 +115,7 @@ INSERT INTO [<table-name>] VALUES ('some value' /*replace with actual set of val
115115
ALTER INDEX [<index-name>] on [<table-name>] REORGANIZE
116116
```
117117

118-
If you want force a delta rowgroup closed and compressed, you can execute the following command. You may want run this command if you are done loading the rows and don't expect any new rows. By explicitly closing and compressing the delta rowgroup, you can save storage further and improve the analytics query performance. A best practice is to invoke this command if you don't expect new rows to be inserted.
118+
If you want to force a delta rowgroup closed and compressed, you can execute the following command. You may want run this command if you are done loading the rows and don't expect any new rows. By explicitly closing and compressing the delta rowgroup, you can save storage further and improve the analytics query performance. A best practice is to invoke this command if you don't expect new rows to be inserted.
119119

120120
```sql
121121
ALTER INDEX [<index-name>] on [<table-name>] REORGANIZE with (COMPRESS_ALL_ROW_GROUPS = ON)
27.8 KB
Loading

0 commit comments

Comments
 (0)