简体   繁体   English

SQL Server上的聚集索引突变

[英]Clustered index mutation on SQL Server

How does SQL Server perform a mutation on a clustered index? SQL Server如何对聚集索引执行突变?

Is it done in place, and hence I need to perform an delete/insert on an applications level, or is it doing a delete/insert under the hood and I have nothing to worry about? 是否已完成,因此我需要在应用程序级别执行删除/插入,还是在后台进行删除/插入,而我没有什么可担心的? I read that this is the latter, can anyone confirm? 我读到这是后者,任何人都可以确认吗?

Link: http://sqlinthewild.co.za/index.php/2011/06/21/are-all-updates-split-into-delete-insert/ 链接: http//sqlinthewild.co.za/index.php/2011/06/21/are-all-updates-split-into-delete-insert/

The link you provided does a pretty good job at explaining the underlying mechanics. 您提供的链接在解释基础机制方面做得很好。 That said, you will almost never need to worry about this at any level and will never need to worry about it at an application level. 就是说,您几乎永远都不需要在任何级别上担心此问题,也永远不需要在应用程序级别上担心它。 Just issue your UPDATE statement and trust that the net result will be an updated row. 只需发出您的UPDATE语句,并相信最终结果将是更新的行。

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

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