Hi All,
I have a largish table in SQL 2005 containing monthly 'buckets' of data.
When a new month of data becomes available I import this (via a staging table) and before the import I disable all indexes. After the inmport, I then rebuild all indexes on the table.
So I guess I have two questions:
1. Is this the correct approach in the first place?
2. Should it really take two hours and fifty minutes to rebuild the indices?
3. Have I built the correct indicies in the first place?
So, my table has 28 months worth of data averaging 1,000,000 rows each month.
I've indexed the 'month' field plus the things likely to be in the 'where' clauses. All indexes are non-unique and non-clustered.
I'd love any advice that anyone can give me.
Thanks all,
Fee
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen
I have a largish table in SQL 2005 containing monthly 'buckets' of data.
When a new month of data becomes available I import this (via a staging table) and before the import I disable all indexes. After the inmport, I then rebuild all indexes on the table.
So I guess I have two questions:
1. Is this the correct approach in the first place?
2. Should it really take two hours and fifty minutes to rebuild the indices?
3. Have I built the correct indicies in the first place?
So, my table has 28 months worth of data averaging 1,000,000 rows each month.
I've indexed the 'month' field plus the things likely to be in the 'where' clauses. All indexes are non-unique and non-clustered.
I'd love any advice that anyone can give me.
Thanks all,
Fee
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen