2015-09-11 14 views

回答

2

根據documentation

什麼樣的數據庫和表候選人拉伸數據庫?

延伸數據庫針對具有大量 歷史數據的事務數據庫,通常存儲在少量表中。這些 表可能包含10億多行。

SQL Server 2016 Community Technology Preview 2(CTP2),Stretch 數據庫遷移整個表。這假設您已經將 歷史數據移動到與當前數據分開的表中。

使用Stretch Database Advisor,SQL Server 2016的一項功能升級 Advisor,用於識別伸展數據庫的數據庫和表。有關 的更多信息,請參閱通過運行Stretch Database Advisor來爲Stretch Database 標識數據庫和表。

Stretch Database Advisor

Current limitation(可能在將來的改變):

表屬性

More than 1,023 columns 

    More than 998 indexes 

    Tables that contain FILESTREAM data 

    FileTables 

    Replicated tables 

    Tables that are actively using Change Tracking or Change Data Capture 

    Memory-optimized tables 

    You can't enable Stretch for a table that has a column named [batchID--N] 
    or an index named [idx--batchID--N] where N is the object ID of the table. 

數據類型和列屬性

timestamp 

    sql_variant 

    XML 

    geometry 

    geography 

    hierarchyid 

    CLR user-defined types (UDTs) 

    Columns that are Always Encrypted 

列類型

COLUMN_SET 

    Computed columns 

約束

Check constraints 

    Foreign key constraints that reference the table 

    Default constraints 

指標

XML indexes 

    Full text indexes 

    Spatial indexes 

    Clustered columnstore indexes 

    Indexed views that reference the table 
+1

將這一功能也可用於臨時表有用嗎? –

+1

通常臨時表被清空並重新加載。它沒有「歷史數據」,因爲數據不會保留很長時間。 –

+1

大多數限制將消失。在印度的SSGAS最近的一次演講中,AlwaysOn。在下一個CTP版本中,總是提到加密和索引視圖。查看每個CTP版本的發行說明以獲取更多清除。 – SQLmojoe

相關問題