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 E700D5666A for ; Tue, 1 Mar 2005 13:35:11 +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 48111-06 for ; Tue, 1 Mar 2005 13:35:02 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by svr1.postgresql.org (Postfix) with ESMTP id 3591454431 for ; Tue, 1 Mar 2005 13:34:58 +0000 (GMT) Received: from jefftrout.com ([24.61.201.181]) by comcast.net (sccrmhc12) with SMTP id <2005030113350101200rqr4re>; Tue, 1 Mar 2005 13:35:01 +0000 Received: (qmail 82229 invoked from network); 1 Mar 2005 13:35:01 -0000 Received: from waltham-nat.ma.lycos.com (HELO ?10.124.7.65?) (209.202.205.1) by 192.168.0.106 with SMTP; 1 Mar 2005 13:35:01 -0000 In-Reply-To: <42243725.6060804@sara.nl> References: <42243725.6060804@sara.nl> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <0ba53986bff9d72366213838353e459c@torgo.978.org> Content-Transfer-Encoding: 7bit Cc: pgsql-performance@postgresql.org From: Jeff Subject: Re: multi billion row tables: possible or insane? Date: Tue, 1 Mar 2005 08:37:16 -0500 To: Ramon Bastiaans X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.201 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP, RCVD_IN_SORBS_DUL X-Spam-Level: X-Archive-Number: 200503/5 X-Sequence-Number: 10710 On Mar 1, 2005, at 4:34 AM, Ramon Bastiaans wrote: > > What would be important issues when setting up a database this big, > and is it at all doable? Or would it be a insane to think about > storing up to 5-10 billion rows in a postgres database. > Buy a bunch of disks. And then go out and buy more disks. When you are done with that - go buy some more disks. Then buy some ram. Then buy more disks. You want the fastest IO possible. I'd also recommend the opteron route since you can also put heaping gobules of ram in there as well. > The database's performance is important. There would be no use in > storing the data if a query will take ages. Query's should be quite > fast if possible. > And make sure you tune your queries. -- Jeff Trout http://www.jefftrout.com/ http://www.stuarthamm.net/