Redian新闻
>
When should I reorganize Index/Rebuuild Index?
avatar
When should I reorganize Index/Rebuuild Index?# Database - 数据库
U*D
1
Is there a standard? Thanks.
avatar
i*a
2
Check index fragmentation.

【在 U****D 的大作中提到】
: Is there a standard? Thanks.
avatar
U*D
3
Thanks.
We have a 800G database. The administrator set the reorganize/Rebuild index
once a week. It takes more than 2 hours to reorganize index and over 8
hours to rebuild index. Is there a way to shorten the time?

【在 i****a 的大作中提到】
: Check index fragmentation.
avatar
B*g
4
Are you a administrator?

index

【在 U****D 的大作中提到】
: Thanks.
: We have a 800G database. The administrator set the reorganize/Rebuild index
: once a week. It takes more than 2 hours to reorganize index and over 8
: hours to rebuild index. Is there a way to shorten the time?

avatar
U*D
5
Want to be one.

【在 B*****g 的大作中提到】
: Are you a administrator?
:
: index

avatar
i*a
6
SQL server? 2005 or later?
you can have horizontally partitioned tables, and only rebuild index on
the partitions that have fragments. but it's not a simple change if the
database is not already setup this way

index

【在 U****D 的大作中提到】
: Thanks.
: We have a 800G database. The administrator set the reorganize/Rebuild index
: once a week. It takes more than 2 hours to reorganize index and over 8
: hours to rebuild index. Is there a way to shorten the time?

avatar
U*D
7
2008 SQL server.
Unfortunately, no partition at all.

【在 i****a 的大作中提到】
: SQL server? 2005 or later?
: you can have horizontally partitioned tables, and only rebuild index on
: the partitions that have fragments. but it's not a simple change if the
: database is not already setup this way
:
: index

avatar
i*a
8
then only rebuild the index that's fragmented

【在 U****D 的大作中提到】
: 2008 SQL server.
: Unfortunately, no partition at all.

avatar
U*D
9
OK. Thanks.

【在 i****a 的大作中提到】
: then only rebuild the index that's fragmented
avatar
g*l
10
是的,可以写个SP CHECK FRAMENTATION所有的INDEX,然后REBUILD FRAMENTATION到一
定程度,比如40%+的。注意REBUILD要在系统IDLE的时候半夜鸡叫的时候,不要有其它
JOB或者BACKUP RUN,看你的时间那么长,你的数据可能需要ARCHIVE了
avatar
a9
11
index碎片影响到底有多大?感觉实际上没什么太大影响吧?

【在 g***l 的大作中提到】
: 是的,可以写个SP CHECK FRAMENTATION所有的INDEX,然后REBUILD FRAMENTATION到一
: 定程度,比如40%+的。注意REBUILD要在系统IDLE的时候半夜鸡叫的时候,不要有其它
: JOB或者BACKUP RUN,看你的时间那么长,你的数据可能需要ARCHIVE了

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。