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 78B5952C22 for ; Thu, 14 Jul 2005 15:26:59 -0300 (ADT) 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 63775-03 for ; Thu, 14 Jul 2005 18:26:54 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id 8556252C02 for ; Thu, 14 Jul 2005 15:26:53 -0300 (ADT) Received: by flake.decibel.org (Postfix, from userid 1001) id 3634015234; Thu, 14 Jul 2005 13:26:53 -0500 (CDT) Date: Thu, 14 Jul 2005 13:26:52 -0500 From: "Jim C. Nasby" To: Nicolas Beaume Cc: pgsql-performance@postgresql.org Subject: Re: large table vs multiple smal tables Message-ID: <20050714182651.GB92165@decibel.org> References: <42D4E836.9020607@univ-nantes.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42D4E836.9020607@univ-nantes.fr> 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, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/183 X-Sequence-Number: 13424 On Wed, Jul 13, 2005 at 12:08:54PM +0200, Nicolas Beaume wrote: > Hello > > I have a large database with 4 large tables (each containing at least > 200 000 rows, perhaps even 1 or 2 million) and i ask myself if it's > better to split them into small tables (e.g tables of 2000 rows) to > speed the access and the update of those tables (considering that i will > have few update but a lot of reading). 2 million rows is nothing unless you're on a 486 or something. As for your other question, remember the first rule of performance tuning: don't tune unless you actually need to. -- Jim C. Nasby, Database Consultant decibel@decibel.org Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?"