Received: from bilbo.in.mat.cc (bilbo.in.mat.cc [212.43.217.121]) by postgresql.org (Postfix) with ESMTP id A0927475881; Mon, 22 Apr 2002 02:30:10 -0400 (EDT) Received: from bilbo.in.org (localhost [127.0.0.1]) by bilbo.in.mat.cc (Postfix) with ESMTP id DB00871183; Mon, 22 Apr 2002 08:29:58 +0200 (CEST) Received: from sauron (sauron.in.mat.cc [212.43.217.122]) by bilbo.in.mat.cc (Postfix) with ESMTP id 99DBE71183; Mon, 22 Apr 2002 08:29:57 +0200 (CEST) Date: Mon, 22 Apr 2002 08:29:57 +0200 From: Mathieu Arnold To: pgsql-novice@postgresql.org, pgsql-admin@postgresql.org Subject: Re: [NOVICE] Hardware needed for 15,000,000 record DB? Message-ID: <210921203.1019464197@sauron> In-Reply-To: <018e01c1e98b$c65771b0$0a00000a@windowsbox> References: <018e01c1e98b$c65771b0$0a00000a@windowsbox> X-Mailer: Mulberry/2.2.0b4 (Win32) X-wazaaa: True, true MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Archive-Number: 200204/189 X-Sequence-Number: 4077 --On dimanche 21 avril 2002 19:25 -0400 pdg@stratos.net wrote: > Hello, :-) > > Can someone help me spec out the hardware needed for a simple web-based > database app? > > Basically, that application needs to lookup a single row by its primary > key. This would be fairly straightforward, except that the table needs to > contain up to 15 million records. Each row will contain approximately 25 > variable length CHAR fields with perhaps a total of 3 to 4 kilobytes of > data per row. > > Updates will be done nightly via some sort of a batch process. > > What kind of hardware would be needed for this sort of application? The > queries are not complex, it's just a lot of data. > > Would a midrange Celeron processor with 256 MB RAM be sufficient? How > would backups work for a database this large? > > Is PostgreSQL even the best database engine for this app? Perhaps MySQL? > Or maybe a Microsoft solution? well, I have a server with a database over 7GB, and : backup=> select count(*) from file; count ---------- 19430605 (1 row) backup=> explain analyze select * from file where id_file = 29000000; NOTICE: QUERY PLAN: Index Scan using file_pkey on file (cost=0.00..3.18 rows=1 width=117) (actual time=0.60..0.61 rows=1 loops=1) Total runtime: 0.77 msec and it's an old poor : hda: IBM-DTLA-307030, ATA DISK drive ps: the select count(*) took a long time, but I believe that was because there was a batch running and feeding the db :) -- Mathieu Arnold