Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regathering Stats on Tables that have not changed

Status
Not open for further replies.

djbjr

Programmer
Dec 7, 2001
106
US
OK So I need a point in the right direction.

Every month I load several snapshot tables based on end of month data. They are all stored in partitioned tables.

At the beginning of each month I have several users running thousands of reports from Business Objects using these tables (amoung others)

Last month, these queries started to hang, probably because of larger amounts of data. Because these queries are from Business Objects I cant add hints or re-write the queries.

We tried several things and they didnt work. We finally just dropped all the stats on all the partitions including indexes and regathered them. This worked.

Then the next day, the queries started hanging again. We did load data, but none of these snapshot tables had been touched. Any clue of what may be happening? I am at a total loss.

The biggest thing I notice in the explain plan is that partition elimination is not happening but when we regather the stats on these partitioned tables, it begins to do the partition elimination again and it works fine.

Any suggestion would be great. I dont want to have to regather stats every day because that process takes 2 hours.

Thanks and sorry for the wordy email.

dj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top