Re: Performance options for CPU bound multi-SUM query - Mailing list pgsql-general

From David Rowley
Subject Re: Performance options for CPU bound multi-SUM query
Date
Msg-id CAKJS1f_yxkKPGrMWvzBhfs6EGWsDLXAevk3g9Lz72obRkUmkow@mail.gmail.com
Whole thread Raw
In response to Re: Performance options for CPU bound multi-SUM query  (Matt <bsg075@gmail.com>)
List pgsql-general
On 28 January 2016 at 08:41, Matt <bsg075@gmail.com> wrote:
> Moving from NUMERIC to FLOAT(8) did indeed lower query times by about 20%.
>
> I will try fixeddecimal and agg() as time permits.

That's surprisingly little gain. Please note that you'll not gain any
further improvements from the fixeddecimal type than you won't have
already gotten from float8. My tests showed that it's very slightly
slower than float8, which is possibly due to float8 addition not
having overflow checks.


--
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-general by date:

Previous
From: Berend Tober
Date:
Subject: Re: Multi-Table Insert/Update Strategy - Use Functions/Procedures?
Next
From: Kaushal Shriyan
Date:
Subject: Difference between UDR and BDR replication