Re: Bucket and batch

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Ana Carolina Brito de Almeida" <anacrl(at)ig(dot)com(dot)br>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Bucket and batch
Date: 2008-07-01 09:22:04
Message-ID: 87vdzqufgj.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> "Ana Carolina Brito de Almeida" <anacrl(at)ig(dot)com(dot)br> writes:
>> So, I would like to know the differences between bucket and batch.
>
> A bucket is, well, one bucket of a hash table --- it holds all the
> tuples that have the same hash code (for as many bits of the hash
> code as we are choosing to use). We try to size the hash table with
> enough buckets so there's not more than 10 tuples per bucket on
> average.
>
> A batch is a range of buckets that we process at the same time.

Note that we don't currently do batches for hash aggregates, only joins
currently.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2008-07-01 10:18:47 Re: Explain XML patch
Previous Message Gregory Stark 2008-07-01 09:11:09 Re: Planned obsolescence in identify_system_timezone()