Array performance - Mailing list pgsql-performance

From Ruben Rubio Rey
Subject Array performance
Date
Msg-id 4423E90E.2090607@rentalia.com
Whole thread Raw
In response to Re: Indexes with descending date columns  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Array performance
Re: Array performance
List 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?

pgsql-performance by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: WAL logging of SELECT ... INTO command
Next
From: Svenne Krap
Date:
Subject: Performance problems with multiple layers of functions