SQL Server 2016 具有一项新功能,即拉伸数据库,可让您透明地归档历史数据。但我想知道哪些表适合此功能?
问问题
285 次
1 回答
2
根据文档
什么样的数据库和表适合 Stretch Database?
Stretch Database 针对具有大量历史数据的事务数据库,通常存储在少量表中。这些表可能包含超过十亿行。
在 SQL Server 2016 Community Technology Preview 2 (CTP2) 中,Stretch Database 迁移整个表。这假设您已经将历史数据移动到与当前数据分开的表中。
使用 Stretch Database Advisor(SQL Server 2016 升级顾问的一项功能)来识别 Stretch Database 的数据库和表。有关详细信息,请参阅通过运行 Stretch Database Advisor 识别 Stretch Database 的数据库和表。
当前限制(将来可能会改变):
表属性
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
于 2015-09-11T05:07:00.660 回答