在将数百万行插入表之前,是否需要删除Clustered列存储索引 [英] Do we need to drop Clustered column store index before inserting millions of rows into table

查看:117
本文介绍了在将数百万行插入表之前,是否需要删除Clustered列存储索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SQL Server 2016中有一些带有聚簇列存储索引的表。


我计划在顶部插入数百万行。


哪一个是最佳方法?


删除聚簇列存储索引并插入数据。插入后重新创建聚簇列存储索引。



插入数据而不丢弃聚簇列存储索引


哪一个在性能方面有好处?


请建议。

解决方案

https://docs.microsoft.com / EN-US / SQL /关系的数据库/索引/列存储的索引数据加载指导?视图= SQL服务器-2017

I have some table with clustered column-store index in SQL Server 2016.

I have plan to insert millions of rows top insert.

which one is best approach ?

Drop the clustered column-store index and insert the data. After insertion recreate the clustered column-store index.

or

insert data without dropping clustered column-store index

Which one will good in the aspect of performance ?

Please suggest.

解决方案

https://docs.microsoft.com/en-us/sql/relational-databases/indexes/columnstore-indexes-data-loading-guidance?view=sql-server-2017


这篇关于在将数百万行插入表之前,是否需要删除Clustered列存储索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆