From: stig erikson <stigerikson_nospam_@yahoo.se>
To: pgsql-performance@postgresql.org
Subject: Re: name search query speed
Date: Fri, 04 Mar 2005 16:46:28 +0100
Message-ID: <d09vt4$1f1$1@news.hub.org> (raw)
In-Reply-To: <1109867909.16326.58.camel@bluejay.goodinassociates.com>
References: <1109867909.16326.58.camel@bluejay.goodinassociates.com>
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.)?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: stigerikson_nospam_@yahoo.se
Subject: Re: name search query speed
In-Reply-To: <d09vt4$1f1$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox