为何需要重建主键,以及如何重建主键?
当遇到如下问题时,用户就应该同时考虑重建索引.
例如:
- 索引膨胀导致性能下降(IO and CUP 花销)
- 数据库崩溃倒是索引和PK损坏.
用户可以用如下的语法重建主键:
Rebuild index PRIMARYKEY for t1; //in default DEFTABLESPACE
Rebuild index PRIMARYKEY for t1 in ts1; //support change tablespace only from 5.4 versions
版本: All
产品: Normal/Bundle
平台: Windows/Linux