Re: Easy question - Mailing list pgsql-performance

From codeWarrior
Subject Re: Easy question
Date
Msg-id e2lgmr$1ii5$1@news.hub.org
Whole thread Raw
In response to Easy question  (clemens.bertschler@gmail.com)
Responses Re: Easy question
List pgsql-performance
SELECT geom, group, production_facs FROM south_america

WHERE UPPER(municipio) IN ('ACRE', 'ADJUNTAS', 'AGUADA');


<clemens.bertschler@gmail.com> wrote in message
news:1145741653.759727.38970@e56g2000cwe.googlegroups.com...
> Hi List
> I have maybe an easy question but i do not find an answer, i have this
> SQL query:
>
> SELECT geom,group,production_facs FROM south_america
> WHERE municipio = ''
> OR municipio = 'ACRE'
> OR municipio = 'ADJUNTAS'
> OR municipio = 'AGUADA'
>
> The performance of this query is quite worse as longer it gets, its
> possible that this query gets over 20 to 30 OR comparisons, but then
> the performance is really worse, is it possible to speed it up?
> Thanks
> Clemens
>



pgsql-performance by date:

Previous
From: Michael Stone
Date:
Subject: Re: Why so slow?
Next
From: "mlartz@gmail.com"
Date:
Subject: Re: Hardware: HP StorageWorks MSA 1500