From: Josh Berkus <josh@agliodbs.com>
To: Manfred Koizar <mkoi-pg@aon.at>
Cc: Tomasz Myrta <jasiek@klaster.net>
Cc: Robert Treat <xzilla@users.sourceforge.net>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-performance@postgresql.org
Subject: Re: [SQL] can i make this sql query more efficiant?
Date: Fri, 4 Apr 2003 11:26:14 -0800
Message-ID: <200304041126.14530.josh@agliodbs.com> (raw)
In-Reply-To: <d0ir8vgn2sp6uh2h61nkm4tdasqqn4o18l@4ax.com>
References: <1049403724.13799.5473.camel@camel>
<200304040816.01369.josh@agliodbs.com>
<d0ir8vgn2sp6uh2h61nkm4tdasqqn4o18l@4ax.com>
Manfred,
> I'd be honestly interested in the circumstances where you made that
> observation.
Hmmmm ... one of my database involves a "crosstab" converstion where there
were 13 possible values, and the converted table is heavily indexed. For
that case, I found using CASE statements to be slower.
For your example, how do the statistics change if you increase the number of
levels to 15 and put an index on them?
--
-Josh Berkus
Aglio Database Solutions
San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, mkoi-pg@aon.at, jasiek@klaster.net, xzilla@users.sourceforge.net, pgsql-performance@postgresql.org
Subject: Re: [SQL] can i make this sql query more efficiant?
In-Reply-To: <200304041126.14530.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox