From: Ruben Rubio Rey <ruben@rentalia.com>
To: pgsql-performance@postgresql.org
Subject: Re: Array performance
Date: Mon, 27 Mar 2006 09:03:03 +0200
Message-ID: <44278E27.5090909@rentalia.com> (raw)
In-Reply-To: <5000.1143215504@sss.pgh.pa.us>
References: <200603170625.k2H6PJ926955@pillette.com>
<1143112188.2810.27.camel@theo-laptop.int.coza.net.za>
<20060323132448.GB4881@surnet.cl>
<4423E90E.2090607@rentalia.com>
<5000.1143215504@sss.pgh.pa.us>
Tom Lane wrote:
>Ruben Rubio Rey <ruben@rentalia.com> writes:
>
>
>>SELECT (array[20]+array[21]+ ... +array[50]+array[51]) as total
>>FROM table
>>WHERE
>>(array[20]+array[21]+ ... +array[50]+array[51])<5000
>>AND array[20]<>0
>>AND array[21]<>0
>> ...
>>AND array[50]<>0
>>AND array[51])<>0
>>
>Any ideas to make this query faster?
>
>
>
>What's the array datatype? Integer or float would probably go a lot
>faster than NUMERIC, if that's what you're using now.
>
>
Already its integer[]
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-performance@postgresql.org
Cc: ruben@rentalia.com
Subject: Re: Array performance
In-Reply-To: <44278E27.5090909@rentalia.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