Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group