Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id BF7DF9FA344 for ; Sun, 10 Dec 2006 15:43:12 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 23423-01-6 for ; Sun, 10 Dec 2006 15:43:02 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nz-out-0102.google.com (nz-out-0506.google.com [64.233.162.239]) by postgresql.org (Postfix) with ESMTP id 6CE199FA42F for ; Sun, 10 Dec 2006 15:41:47 -0400 (AST) Received: by nz-out-0102.google.com with SMTP id i11so670488nzh for ; Sun, 10 Dec 2006 11:41:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=oxPi/NtiHrskNcvij8a2CnZNt7zuVDB8gpIuge5UMkb6G/7wd+cj3DTJ46tDhOSmKJbSkDSwOOquf4VoxxOY7ZSeSdgTtgUMvHRDqeny3vrz12CmIkSj1L4Fs5RV1QWz/AoiIEDJDSR00wTu96vHH1+z1j4/s4QjVOu7oow4cGM= Received: by 10.65.114.4 with SMTP id r4mr9409841qbm.1165779706095; Sun, 10 Dec 2006 11:41:46 -0800 (PST) Received: by 10.65.215.20 with HTTP; Sun, 10 Dec 2006 11:41:46 -0800 (PST) Message-ID: <8a0c7af10612101141n2c7727c3r2f92345753960808@mail.gmail.com> Date: Sun, 10 Dec 2006 17:41:46 -0200 From: "Daniel van Ham Colchete" To: pgsql-performance@postgresql.org Subject: New to PostgreSQL, performance considerations MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/190 X-Sequence-Number: 22246 Hi yall, although I've worked with databases for more than 7 years now, I'm petty new to PostgreSQL. I have an application using SQLite3 as an embedded SQL solution because it's simple and it can handle the load that *most* of my clients have. Because of that '*most*' part, because of the client/server way and because of the license, I'm think about start using PostgreSQL. My app uses only three tables: one has low read and really high write rates, a second has high read and low write and the third one is equally high on both. I need a db that can handle something like 500 operations/sec continuously. It's something like 250 writes/sec and 250 reads/sec. My databases uses indexes. Each table would have to handle 5 million rows/day. So I'm thinking about creating different tables (clusters?) to different days to make queries return faster. Am I right or there is no problem in having a 150 million (one month) rows on a table? All my data is e-mail traffic: user's quarentine, inbond traffic, outbond traffic, sender, recipients, subjects, attachments, etc... What do you people say, is it possible with PostgreSQL? What kind of hardware would I need to handle that kind of traffic? On a first test, at a badly tunned AMD Athlon XP 1800+ (ergh!) I could do 1400 writes/sec locally after I disabled fsync. We have UPSs, in the last year we only had 1 power failure. Thank you all for your tips. Best regards, Daniel Colchete