Array performance

From: Ruben Rubio Rey <ruben(at)rentalia(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Array performance
Date: 2006-03-24 12:41:50
Message-ID: 4423E90E.2090607@rentalia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

I have a select like

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?

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Svenne Krap 2006-03-24 12:49:17 Performance problems with multiple layers of functions
Previous Message Alvaro Herrera 2006-03-24 12:39:02 Re: WAL logging of SELECT ... INTO command