X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BE7E05574D for ; Thu, 3 Mar 2005 17:46:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44180-05 for ; Thu, 3 Mar 2005 17:46:28 +0000 (GMT) Received: from ct.radiology.uiowa.edu (ct.radiology.uiowa.edu [129.255.60.186]) by svr1.postgresql.org (Postfix) with ESMTP id DFEFB566A0 for ; Thu, 3 Mar 2005 17:46:20 +0000 (GMT) Received: from [192.168.1.11] (12-217-241-0.client.mchsi.com [12.217.241.0]) by ct.radiology.uiowa.edu (8.11.6/8.11.6) with ESMTP id j23HkA331834; Thu, 3 Mar 2005 11:46:10 -0600 Message-ID: <42274D5A.1070402@arbash-meinel.com> Date: Thu, 03 Mar 2005 11:46:02 -0600 From: John A Meinel User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeremiah Jahn Cc: postgres performance Subject: Re: name search query speed References: <1109867909.16326.58.camel@bluejay.goodinassociates.com> In-Reply-To: <1109867909.16326.58.camel@bluejay.goodinassociates.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigCEF05B15A5A9B1D17863308B" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200503/59 X-Sequence-Number: 10764 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCEF05B15A5A9B1D17863308B Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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- > > > > > It sounds like the problem is just that you have a lot of rows that need to be returned. Can you just put a limit on the query? And then change the client app to recognize when the limit is reached, and either give a link to more results, or refine query, or something like that. John =:-> --------------enigCEF05B15A5A9B1D17863308B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCJ01dJdeBCYSNAAMRArw/AJoDbm9FRRy++bbW3IqBcRHnw4HlUQCfZB7h ynQLDO9yIVQ6NPWa8XiM3uc= =kodJ -----END PGP SIGNATURE----- --------------enigCEF05B15A5A9B1D17863308B--