Re: Massive performance issues - Mailing list pgsql-performance

From Mark Kirkwood
Subject Re: Massive performance issues
Date
Msg-id 4317D400.2080809@paradise.net.nz
Whole thread Raw
In response to Massive performance issues  (Matthew Sackman <matthew@lshift.net>)
Responses Re: Massive performance issues
List pgsql-performance
Matthew Sackman wrote:

> I need to get to the stage where I can run queries such as:
 >
> select street, locality_1, locality_2, city from address
> where (city = 'Nottingham' or locality_2 = 'Nottingham'
>        or locality_1 = 'Nottingham')
>   and upper(substring(street from 1 for 1)) = 'A'
> group by street, locality_1, locality_2, city
> order by street
> limit 20 offset 0
>
> and have the results very quickly.
>

This sort of query will be handled nicely in 8.1 - it has bitmap and/or
processing to make use of multiple indexes. Note that 8.1 is in beta now.

Cheers

Mark


pgsql-performance by date:

Previous
From: Hemant Pandey
Date:
Subject: Update is more affected( taking more time) than Select ( if Auto vacuum is not running)
Next
From: "Luke Lonergan"
Date:
Subject: Re: Poor performance on HP Package Cluster