I. 基於過去在資料倉儲的查詢中,以Row base的查詢效率不彰,
進而調整出以Column為基礎的資料索引來進行查詢
i. 壓縮效率較高
ii. 只需儲存較少的資訊在記憶體中
iii. 可處理1024個Columns
iv. Columnstore index屬於nonclustered index
進而調整出以Column為基礎的資料索引來進行查詢
i. 壓縮效率較高
ii. 只需儲存較少的資訊在記憶體中
iii. 可處理1024個Columns
iv. Columnstore index屬於nonclustered index
II. 以欄位儲存的索引機制有以下限制
i. 不能使用INSERT、UPDATE、DELETE、MERGE或者BULK LOAD
ii. 不能設定在Uniqueidentifier、Binary、Varbinary、ntext、text、image、 varchar(max)、nvarchar(max)、rowversion、timestamp以及xml 等資料型態
i. 不能使用INSERT、UPDATE、DELETE、MERGE或者BULK LOAD
ii. 不能設定在Uniqueidentifier、Binary、Varbinary、ntext、text、image、 varchar(max)、nvarchar(max)、rowversion、timestamp以及xml 等資料型態
III. 可以透過以下幾種方式來新增資料:
i. 建立Partition並以切換Partition的方式存放新資料
ii. 取消Columnstore Index,新增資料後再重建一次
iii. 透過Union All 來查詢已建立Columnstore Index與尚未建立Columnstore Index的資料
i. 建立Partition並以切換Partition的方式存放新資料
ii. 取消Columnstore Index,新增資料後再重建一次
iii. 透過Union All 來查詢已建立Columnstore Index與尚未建立Columnstore Index的資料

沒有留言:
張貼留言