开发者

How does INSERT, UPDATE & DELETE work on a table partition?

开发者 https://www.devze.com 2022-12-22 03:09 出处:网络
How does INSERT, UPDATE & DELETE work on a SQL Server table part开发者_开发技巧ition? Technical explaination please how the SQL server engine handles table partition vs non table partition.The SQ

How does INSERT, UPDATE & DELETE work on a SQL Server table part开发者_开发技巧ition?

Technical explaination please how the SQL server engine handles table partition vs non table partition.


The SQL optimiser will use the query predicates to decide on how many table partitions will be affected. This makes the query run faster as unnecessary data is not read from disk. The query will then be run against the relevant data blocks in the affected partitions. To the user this is completely transparent.


I found this article by Kimberly Tripp to be incredibly useful in figuring out the ins and outs of table partitioning. It's about 40 pages long, technically detailed, and a printout sits on my desk as a permanenet reference.

0

精彩评论

暂无评论...
验证码 换一张
取 消