3.While observing the index statistics, you find that an index is highly fragmented, thereby resulti

来源:互联网 发布:王权富贵东方月初乐乎 编辑:程序博客网 时间:2024/06/06 14:24
3.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.
答案:B
解析:由于频繁的dml,索引就会产生碎片,它的效率会越来越慢,因此就需要重建,
可以使用online关键字在线重建索引,因为重建索引的时候会加锁,假如该关键字后,可以使加锁时间变的很短
0 0
原创粉丝点击