简体   繁体   English

无需表分区就可以通过索引分区来提高SQL Server的性能

[英]Can the performance in SQL Server be boosted by index partitioning without the table partitioning

I don't want to restructure the entire table, I merely want a boost on a couple of indexes. 我不想重组整个表,我只想增加几个索引。 Will it work if I do not add ON MyPartitionScheme(MyPartitionColumn) to the TABLE, but will only add it to the proper index(es)? 如果我不将ON MyPartitionScheme(MyPartitionColumn)添加到表中,而仅将其添加到正确的索引中,它将起作用吗?

Partitioning is only one alternative for performance tuning for a database table. 分区只是数据库表性能调整的一种选择。

If you could share us the execution plan for your queries that require performance tuning, we can try to fit the best option. 如果您可以将需要性能调整的查询的执行计划分享给我们,我们可以尝试提供最佳选择。

Maybe you have a missing index? 也许您缺少索引? Or maybe an invalid use of functions in WHERE clause could cause the problems. 也许在WHERE子句中对函数的无效使用可能会导致问题。

The answer is, yes, it can and the performance improves, although not as drastically. 答案是,是的,它可以并且性能得到改善,尽管并没有那么大。

It appears that the effect of applying the partition scheme on the table itself is essentially partitioning its primary key. 似乎在表本身上应用分区方案的效果实际上是在对其主键进行分区。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM