Received: from aragorn.reaumur.absolight.net (ATuileries-113-2-1-180.abo.wanadoo.fr [80.11.216.180]) by postgresql.org (Postfix) with ESMTP id 3F8BA475481; Mon, 22 Apr 2002 03:58:35 -0400 (EDT) Received: from andromede.reaumur.absolight.net (andromede.reaumur.absolight.net [212.43.217.61]) by aragorn.reaumur.absolight.net (Postfix) with ESMTP id 76B7ED5CA; Mon, 22 Apr 2002 09:58:29 +0200 (CEST) Date: Mon, 22 Apr 2002 09:58:15 +0200 From: Mathieu Arnold To: pdg@stratos.net, pgsql-novice@postgresql.org, pgsql-admin@postgresql.org Subject: Re: [NOVICE] Hardware needed for 15,000,000 record DB? Message-ID: <237330192.1019469494@andromede.reaumur.absolight.net> In-Reply-To: <027001c1e9d1$25af59d0$0a00000a@windowsbox> References: <027001c1e9d1$25af59d0$0a00000a@windowsbox> X-Mailer: Mulberry/2.2.0b3 (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/191 X-Sequence-Number: 4079 --On lundi 22 avril 2002 03:41 -0400 pdg@stratos.net wrote: > Hello, > > >> 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 :) > > Thanks for the information. > > Though, as a newbie, I am not quite sure what all the above performance > numbers actually mean. :) > > What sort of CPU/Memory configuration are you running this server on? well, it means that I got an entry from my database (which have 19,430,605 entries) in 0.77 msec using the primary key. the server is a pIII 600 with 256M of ram, but there is a lot of other things running on. The main things about database is the hard drive speed, with the turtle I've got in this server, it is *slow*, just get a scsi3 hard drive and it'll run like smoothly, the second thing, is the memory/cpu speed, but it really only gets useful if you have very complex queries. -- Mathieu Arnold