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 427115658E for ; Thu, 17 Mar 2005 16:09:44 +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 86656-08 for ; Thu, 17 Mar 2005 16:09:38 +0000 (GMT) Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by svr1.postgresql.org (Postfix) with ESMTP id 4FD4A563F5 for ; Thu, 17 Mar 2005 16:09:37 +0000 (GMT) Received: from trofast.ipv6.sesse.net ([2001:700:300:dc03:20e:cff:fe36:a766] helo=trofast.sesse.net) by cassarossa.samfundet.no with esmtp (Exim 4.34) id 1DBxZ1-0000M4-4T for pgsql-performance@postgresql.org; Thu, 17 Mar 2005 17:09:35 +0100 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1DBxZ0-0004Kq-00 for ; Thu, 17 Mar 2005 17:09:34 +0100 Date: Thu, 17 Mar 2005 17:09:34 +0100 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: Building a DB with performance in mind Message-ID: <20050317160934.GB16434@uio.no> Mail-Followup-To: pgsql-performance@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux 2.6.11-rc3 on a i686 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.022 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/359 X-Sequence-Number: 11064 On Thu, Mar 17, 2005 at 10:56:10AM -0500, Alexander Ranaldi wrote: > Most of my queries return rows based on UserID, and also only if > Private is FALSE. Would it be in the interest of best performance to > split this table into two tables: "EntriesPrivate", > "EntriesNotPrivate" and remove the "Private" column? You could do a partial index if you'd like (ie. one only indexing rows where Private=FALSE), but I'm not sure if it's the best solution. /* Steinar */ -- Homepage: http://www.sesse.net/