Re: [HACKERS] choose_bitmap_and again (was Re: Strangely Variable Query Performance)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dann Corbit" <DCorbit(at)connx(dot)com>
Cc: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org, "PostgreSQL Performance" <pgsql-performance(at)postgresql(dot)org>, "Steve" <cheetah(at)tanabi(dot)org>
Subject: Re: [HACKERS] choose_bitmap_and again (was Re: Strangely Variable Query Performance)
Date: 2007-04-14 15:52:45
Message-ID: 4535.1176565965@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches pgsql-performance

"Dann Corbit" <DCorbit(at)connx(dot)com> writes:
> Instead of sorting, I suggest the quickselect() algorithm, which is
> O(n).

What for? Common cases have less than half a dozen entries. That is
not the place we need to be spending engineering effort --- what we
need to worry about is what's the choice algorithm, not implementation
details.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2007-04-14 17:04:14 Re: build/install xml2 when configured with libxml
Previous Message Pavel Stehule 2007-04-14 15:49:31 Re: Table function support

Browse pgsql-patches by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2007-04-14 17:04:14 Re: build/install xml2 when configured with libxml
Previous Message Pavel Stehule 2007-04-14 15:49:31 Re: Table function support

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2007-04-14 16:37:54 Re: Question about memory allocations
Previous Message cluster 2007-04-14 13:51:37 FK triggers misused?