![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I posted messages before about trying to purge many records (about 35%) of a 200Gig database. The responses gave me a lot to think about, especially regarding the indexes. But due to the short windows that I have to run in, manipulating the indexes is not an option. But this leads to another question. When all of this is done, we will need to shrink the db to reclaim the space. We will also need to rebuild the indexes, but this can be done one table at a time, so that might be ok. What I am looking for is advice on how to get through a shink of a 200G db on a fairly slow machine. Are there any 'tricks of the trade' that will help me get through it? I believe one of the DBAs said that they have not been able to shrink the db in years because it takes longer than the longest available window. |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| ||||
| ||||
|
|
Ok, I think I understand your point about not shrinking the db. Does this mean that new records will be written to the space that was freed up by the deletes? |
|
I thought that the space would not be reused until you did a shrink to release it. |
|
However, my purge will be removing about 200 million records and the db only grows at about 10 million per month. So it would take a long time to fill up the space freed by the purge. |
|
As for the DBREINDEX and the INDEXDEFRAG, do they produce similar results? The DBAs that I am doing this for seem to believe that a reindex will give a bigger performance boost than the defrag. |
#7
| |||
| |||
|
|
Does anyone have a resource on index defragmentation that could be done on a schedule for an entire database based on some automated statistics? I see plenty of info in BOL, but whether I should use fill factors of 80, 30 or what I have no idea. We have never done any kind of index defragmentation - is there some way that the database itself can just handle it? |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
So there isn't some source out there that has the script posted on the net? If this is something that should be done for every single database, why should every person write their own and go through a development bug fix cycle to figure out what they are doing wrong? I'm worried about throwing something together and it causing more problems than it solves (right now we have no problems as far as I know related to indexes or fragmentation for databases in use for years). |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |