From: Andrus <kobruleht2@hot.ee>
To: Scott Carey <scott@richrelevance.com>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Increasing GROUP BY CHAR columns speed
Date: Fri, 28 Nov 2008 22:43:57 +0200
Message-ID: <2B43ECEF2E3A49A1811782BD8FD8E67E@andrusnotebook> (raw)
>I it seems that slowness is caused by grouping by column
>
> exchrate numeric(13,8)
exchrate has different values in few rows.
It has usually value 0
In this sample query it is always 0.
I tried not change exchrate with
nullif( bilkaib.EXCHRATE,0)
but this does not up speed query, no idea why.
Andrus.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: kobruleht2@hot.ee, scott@richrelevance.com, scott.marlowe@gmail.com
Subject: Re: Increasing GROUP BY CHAR columns speed
In-Reply-To: <2B43ECEF2E3A49A1811782BD8FD8E67E@andrusnotebook>
References: <2B43ECEF2E3A49A1811782BD8FD8E67E@andrusnotebook>
* 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