Re: Large CASE-statement is pretty slow?

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Arjen van der Meijden <acmmailing(at)vulcanus(dot)its(dot)tudelft(dot)nl>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Large CASE-statement is pretty slow?
Date: 2004-03-15 17:20:49
Message-ID: 87smga2fim.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


Arjen van der Meijden <acmmailing(at)vulcanus(dot)its(dot)tudelft(dot)nl> writes:

> Well, I have discarded this type of query as "too inefficient" and found a
> better way

Loading the mapping into a table with an index and doing an update using
"from" to do a join seems likely to end up being the most efficient method.
Postgres would probably not even bother with the index and do a hash join.

--
greg

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Arjen van der Meijden 2004-03-15 18:54:21 Re: Large CASE-statement is pretty slow?
Previous Message Greg Stark 2004-03-15 17:15:45 Re: Large CASE-statement is pretty slow?