Re: Solving hash table overrun problems
От | Bruno Wolff III |
---|---|
Тема | Re: Solving hash table overrun problems |
Дата | |
Msg-id | 20050304154607.GA19919@wolff.to обсуждение исходный текст |
Ответ на | Solving hash table overrun problems (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Solving hash table overrun problems
|
Список | pgsql-hackers |
On Thu, Mar 03, 2005 at 17:05:40 -0500, Tom Lane <tgl@sss.pgh.pa.us> wrote: > > * Estimate the number of batches N using the planner's estimate. > We will always choose N a power of 2. A tuple's batch number is > ((H div K) mod N). If K is way low this could be very slow. Is there a way to do something similar changing the hash function to H div KN? If you went down this road you would probably want to use distinct primes for each new N. > * Now begin scanning the outer join input. Tuples of batch number > zero (according to the current calculation) can be matched to the > current hashtable contents. Tuples of higher batch numbers are dropped > into holding files for the outer input, one per batch. For new keys at this step do you know their final disposition so that making new hash entries won't be necessary?
В списке pgsql-hackers по дате отправления: