koshal, December 12, 2005 - 2:09 pm UTC
Hi Tom
Henceforth I will use only dbms_stats. but out of curiosity I would like to know the following.
1. I thought by having table analyzed with complete statistics, the probability of optimizer choosing the best execution path is more rather than analyzing table with estimate statistics. Is that statement true?
2. On the table I mentioned (126 million rows) , we only do daily inserts/select and we analyze once in a week.
Instead of having estimate statistics how abt analyzing table on monthly basis. Generally on a table with millions of rows The probability of change in execution plan/probability of deriving approriate plan is more with a) Weekly analyze with estimate statistics or b)monthly analyze with compute statistics.
Thanks
Koshal
Thanks
Koshal
December 12, 2005 - 2:27 pm UTC
1) but if the table is sooo large, an estimate is probably sufficient. It is a matter of scale.
2) every time you analyze you are hoping plans change. so the probability of a change in plan is in line with the number of times you gather statistics.
You might be very very interested in the book I reference on my home page here by Jonathan Lewis.