Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Is it better to set the freelist to a prime number ?
In article <b3cb12d6.0207230948.7d343196_at_posting.google.com>, you said
(and I quote):
> less idealy random source, a prime number has to be used. And using a
> prime number is only negligibly more expensive than using a non-prime
> number. So why not?
Well, assuming a modulo hash function the only way to make it work properly and with a good distribution is with a prime number. Any other number will result in "clustering" around the 0 value of the remainder: there are more exact dividers than just 1-and-the-prime-number.
-- Cheers Nuno Souto nsouto_at_optushome.com.au.nospamReceived on Wed Jul 24 2002 - 07:42:30 CDT