Re: name search query speed

From: stig erikson <stigerikson_nospam_(at)yahoo(dot)se>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: name search query speed
Date: 2005-03-04 15:46:28
Message-ID: d09vt4$1f1$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Jeremiah Jahn wrote:
> I have about 5M names stored on my DB. Currently the searches are very
> quick unless, they are on a very common last name ie. SMITH. The Index
> is always used, but I still hit 10-20 seconds on a SMITH or Jones
> search, and I average about 6 searches a second and max out at about
> 30/s. Any suggestions on how I could arrange things to make this search
> quicker? I have 4gb of mem on a raid 5 w/ 3 drives. I'm hoping that I
> can increase this speed w/o a HW upgrade.
>
> thanx,
> -jj-
>

is there a chance you could benefit from indices spanning over multiple columns?
maybe the user that searches for SMITH knows more then the last name, ie first
name, location (zip code, name of city, etc.)?

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Richard Huxton 2005-03-04 15:56:25 Re: Help with tuning this query (with explain analyze finally)
Previous Message Tom Lane 2005-03-04 15:22:56 Re: Query's fast standalone - slow as a subquery.