X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 62B5C9DD447 for ; Mon, 12 Dec 2005 18:24:33 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 34772-09 for ; Mon, 12 Dec 2005 18:24:35 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 531C39DD1FC for ; Mon, 12 Dec 2005 18:24:31 -0400 (AST) Received: by flake.decibel.org (Postfix, from userid 1001) id 9E16B15272; Mon, 12 Dec 2005 16:24:33 -0600 (CST) Date: Mon, 12 Dec 2005 16:24:33 -0600 From: "Jim C. Nasby" To: Francisco Reyes Cc: PostgreSQL performance Subject: Re: Small table or partial index? Message-ID: <20051212222433.GH54639@pervasive.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/302 X-Sequence-Number: 16123 On Fri, Dec 02, 2005 at 06:28:09PM -0500, Francisco Reyes wrote: > I am in the process of designing a new system. > There will be a long list of words such as > > -word table > word_id integer > word varchar > special boolean > > Some "special" words are used to determine if some work is to be done and > will be what we care the most for one type of operation. Tough call. The key here is the amount of time required to do a join. It also depends on if you need all the special words or not. Your best bet is to try and benchmark both ways. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461