X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C36E38B9F8D for ; Tue, 8 Feb 2005 18:14:09 +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 40984-08 for ; Tue, 8 Feb 2005 18:13:57 +0000 (GMT) Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by svr1.postgresql.org (Postfix) with ESMTP id 4EEF28B9F7F for ; Tue, 8 Feb 2005 18:13:57 +0000 (GMT) Received: from [192.168.1.51] (fc1smp [66.93.38.87]) (authenticated bits=0) by hosting.commandprompt.com (8.12.8/8.12.8) with ESMTP id j18IDr8p001028; Tue, 8 Feb 2005 10:13:53 -0800 Message-ID: <42090155.7040205@commandprompt.com> Date: Tue, 08 Feb 2005 10:13:41 -0800 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Shashi Gireddy Cc: pgsql-admin@postgresql.org Subject: Re: too slow References: <5f447e3505020809517851420b@mail.gmail.com> In-Reply-To: <5f447e3505020809517851420b@mail.gmail.com> Content-Type: multipart/mixed; boundary="------------010705060303090405090004" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.041 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/69 X-Sequence-Number: 16237 This is a multi-part message in MIME format. --------------010705060303090405090004 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Shashi Gireddy wrote: > I recently migrated from MySql, The database size in mysql was 1.4GB > (It is a static database). It generated a dump file (.sql) of size > 8GB), It took 2days to import the whole thing into postgres. ] Well that sounds like you don't have your postgresql.conf configured to properly utilize your system. > After all > the response from postgres is a disaster. It took 40sec's to run a > select count(logrecno) from sf10001; Are you running a RAID? > which generated a value 197569. > And It took for ever time to display the table. How to optimize the > database so that I can expect faster access to data. Have you analyzed? > > each table has 70 colsX197569 rows (static data), like that I have 40 > tables, Everything static. > Sincerely, Joshua D. Drake Command Prompt, Inc. 503-667-4564 > system configuration: p4 2.8ghz 512mb ram os: xp postgres version: 8.0 > > thanks a million in advance, > shashi. -- Command Prompt, Inc., your source for PostgreSQL replication, professional support, programming, managed services, shared and dedicated hosting. Home of the Open Source Projects plPHP, plPerlNG, pgManage, and pgPHPtoolkit. Contact us now at: +1-503-667-4564 - http://www.commandprompt.com --------------010705060303090405090004 Content-Type: text/x-vcard; charset=utf-8; name="jd.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="jd.vcf" begin:vcard fn:Joshua D. Drake n:Drake;Joshua D. org:Command Prompt, Inc. adr:;;PO Box 215;Cascade Locks;Oregon;97014;USA email;internet:jd@commandprompt.com title:Consultant tel;work:503-667-4564 tel;fax:503-210-0334 note:Command Prompt, Inc. is the largest and oldest US based commercial PostgreSQL support provider. We provide the only commercially viable integrated PostgreSQL replication solution, but also custom programming, and support. We authored the book Practical PostgreSQL, the procedural language plPHP, and adding trigger capability to plPerl. x-mozilla-html:FALSE url:http://www.commandprompt.com/ version:2.1 end:vcard --------------010705060303090405090004--