Re: Easy question

From: "codeWarrior" <gpatnude(at)hotmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Easy question
Date: 2006-04-25 15:55:29
Message-ID: e2lgmr$1ii5$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

SELECT geom, group, production_facs FROM south_america

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

<clemens(dot)bertschler(at)gmail(dot)com> wrote in message
news:1145741653(dot)759727(dot)38970(at)e56g2000cwe(dot)googlegroups(dot)com(dot)(dot)(dot)
> 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
>

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2006-04-25 15:55:36 Re: Query on postgresql 7.4.2 not using index
Previous Message Scott Marlowe 2006-04-25 15:54:23 Re: Query on postgresql 7.4.2 not using index