在网上查找,现引用一下:
[@more@]
条件1
在分析(analyze)指定索引之后,查询
index_stats的
height字段的值,如果这个值>=4 ,则最好重建(rebuild)这个索引。虽然这个规则不是总是正确,但如果这个值一直都是不变的,则这个索引也就不需重建。
条件2
在分析(analyze)指定索引之后,查询
index_stats的
del_lf_rows和
lf_rows的值,如果(del_lf_rows/lf_rows)*100 > = 20,则这个索引也需要重建。
例子:
SQL > analyze index IND_PK validate structure;
SQL > select name,height,del_lf_rows,lf_rows,(del_lf_rows/lf_rows) *100 from index_stats;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/3345/viewspace-1006112/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/3345/viewspace-1006112/