Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: dbms_stats.auto_sample_size or sample size 20
On 2/1/06, Juan Carlos Reyes Pacheco <juancarlosreyesp_at_gmail.com> wrote:
>
> Thanks Jurijs,
> In my situation when gathering histograms had reduced the process to
> about 30%, we are in test process so we will see if we lost accurracy,
> thank you for your comment.
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>
its a trade off between row and block sampling.
if you run 1% sampling, but at row level (the default) then you want to sample 1% of the rows. If you got 100 rows per block, then you may well visit every single block in the table...
If you're going to use sampling (for efficiency reasons), then block sampling will assist (at the cost of statistical accuracy)
cheers
connor
-- Connor McDonald =========================== email: connor_mcdonald_at_yahoo.com web: http://www.oracledba.co.uk "Semper in excremento, sole profundum qui variat" -- http://www.freelists.org/webpage/oracle-lReceived on Tue Jan 31 2006 - 19:19:36 CST
![]() |
![]() |