Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Is it better to set the freelist to a prime number ?

Re: Is it better to set the freelist to a prime number ?

From: Nuno Souto <nsouto_at_optushome.com.au.nospam>
Date: Wed, 24 Jul 2002 22:42:30 +1000
Message-ID: <3d3ea267$0$16939$afc38c87@news.optusnet.com.au>


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.nospam
Received on Wed Jul 24 2002 - 07:42:30 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US