码迷,mamicode.com
首页 > 其他好文 > 详细

052-3

时间:2017-12-01 11:32:53      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:hat   currently   com   就会   产生   dml   频繁   ati   rebuild   

While observing the index statistics, you find that an index is highly fragmented, thereby resulting in poor database performance. Which option would you use to reduce fragmentation without affecting the users who are currently using the index?
A.Validate the index structure using the ANALYZE...INDEX command.
B.Rebuild the index using the ALTER INDEX..REBUILD ONLINE command.
C.Change the block space utilization parameters using the ALTER INDEX command.
D.Deallocate the unused space in the index using the ALTER INDEX..DEALLOCATE UNUSED command.

由于频繁的 dml,索引就会产生碎片,它的效率会越来越慢,因此就需要重建,可以使用 online 关键字在线重建索引,因为重建索引的时候会加锁,假如该关键字后,可以使加锁时间变的很短,从而减少对使用索引用户的影响


052-3

标签:hat   currently   com   就会   产生   dml   频繁   ati   rebuild   

原文地址:http://www.cnblogs.com/Babylon/p/7940547.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!