Re: [HACKERS] hybrid hash, cont. of development suggestion needed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Xun Cheng <xun(at)cs(dot)ucsb(dot)edu>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] hybrid hash, cont. of development suggestion needed
Date: 2000-01-17 02:00:32
Message-ID: 6449.948074432@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Xun Cheng <xun(at)cs(dot)ucsb(dot)edu> writes:
> In research, there are traditionally three kinds of hash joins:
> simple hash, grace hash and hybrid hash. Hybrid is generally considered
> to be having a better performance since it is designed to combine
> the best behavior of simple hash and grace hash.
> It has two phases. In the first the relations are read, hashed into
> buckets, and written out, as in grace hash. However, during this phase
> a portion of the memory is reserved for an in-memory hash bucket for R (
> R is joining with S and R is smaller). This bucket of R will never
> be written to disk.

Yes, that's how nodeHash.c does it...

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-01-17 02:45:01 Inhterit fix
Previous Message Alfred Perlstein 2000-01-17 00:00:45 docs done Re: [HACKERS] LIBPQ patches ...