Re: optimizing a cpu-heavy query - Mailing list pgsql-general

From Tom Lane
Subject Re: optimizing a cpu-heavy query
Date
Msg-id 14933.1303913077@sss.pgh.pa.us
Whole thread Raw
In response to Re: optimizing a cpu-heavy query  (Joel Reymont <joelr1@gmail.com>)
Responses Re: optimizing a cpu-heavy query
List pgsql-general
Joel Reymont <joelr1@gmail.com> writes:
> On Apr 26, 2011, at 5:00 PM, Tom Lane wrote:
>> For another couple orders of magnitude, convert the sub-function to C code.  (I don't think you need
>> a whole data type, just a function that does the scalar product.)

> That's a 30x speedup, from 12 minutes down to 38s. Thanks Tom!

Huh, I would've bet on a lot more actually.  The nodeFunctionscan and
nodeAgg code must not be as inefficient as it looks on the surface ...

            regards, tom lane

pgsql-general by date:

Previous
From: Raghavendra
Date:
Subject: Re: Re: Create Database automatacally after silent installation of postgresql. ?
Next
From: Carlos Mennens
Date:
Subject: Re: Switching Database Engines