Re: Easy question

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: clemens(dot)bertschler(at)gmail(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Easy question
Date: 2006-05-02 17:14:58
Message-ID: 20060502171458.GY97354@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

You didn't mention version, but 8.1.x has bitmap index scans that might
greatly speed this up...

On Sat, Apr 22, 2006 at 02:34:13PM -0700, clemens(dot)bertschler(at)gmail(dot)com wrote:
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Markus Schaber 2006-05-02 17:16:12 Re: Why so slow?
Previous Message Fortuitous Technologies 2006-05-02 14:58:51 Re: Running on an NFS Mounted Directory