Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6A9F964FDDB for ; Fri, 24 Oct 2008 07:33:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 64420-02 for ; Fri, 24 Oct 2008 07:33:33 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by postgresql.org (Postfix) with ESMTP id 0BD1064FDCB for ; Fri, 24 Oct 2008 07:33:34 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id m9OAWPv7055116 for ; Fri, 24 Oct 2008 07:33:29 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id m9OA8sPU030713 for pgsql-performance@postgresql.org; Fri, 24 Oct 2008 07:08:54 -0300 (ADT) (envelope-from news) From: "Lionel" X-Newsgroups: pgsql.performance Subject: Re: Hardware HD choice... Date: Fri, 24 Oct 2008 12:08:53 +0200 Organization: Hub.Org Networking Services Lines: 26 Message-ID: References: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Original To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200810/111 X-Sequence-Number: 31692 "Scott Marlowe" wrote: > I second this. Partitioning in time in past reporting databases > resulted in huge performance improvements for select queries. Most statements will load data from a single year, but multiple monthes. I have a integer field containing the year and will use it for partitionning. It will also help a lot to remove one year after 4 years of activity. Actually this same database is used with 2 millions of lines per year (instead of 30). It is loaded with 3 years and runs quite fast unpartitionned on a 4 years old single SCSI HD with 2Go of RAM, single core pentium4. It runs a LOT faster on a quad xeon 2.83GHz with 8Go of ram and SATA HD, which is quite common now for dedicated servers. I tried partitionning on it: it showed no performance gain for such a small size, but it is an evidence that it will help with 30 millions of lines/year. OK, thanks to all your recommandations, I will ask hosters for a RAID10 4x250go SATA.