Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 752D12E002F for ; Tue, 25 Mar 2008 05:36:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 51352-07 for ; Tue, 25 Mar 2008 05:36:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.247]) by postgresql.org (Postfix) with ESMTP id 2F7B82E002D for ; Tue, 25 Mar 2008 05:36:25 -0300 (ADT) Received: by hs-out-0708.google.com with SMTP id x43so2843903hsb.3 for ; Tue, 25 Mar 2008 01:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=NdbMpJxaEKBYHkBxFtejGieKvBENFPc+2ZPe8vpbBU4=; b=HhFmmvHRaySmToz+/Q5vWeLAeplHdAyPDpRFcXgfzXt3dzfmaHpRdyseYJ1AbjCCU9Shj5Kxd7KQIkpyRSJUCTvZN3ROk4HLGcvJVVik/VnA7hv2EUnMLCQRoZouy7gGrFbz2s8eWn2E2K048/4Hiqe3dI94Gbv3TomK9JUM35Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=W4GnChjyGu+N7TXB6JJeo45sem2tOgovcORVtqC8buU+XhGHS7h30cHfA1CwgU4JfIwB+IXs7A1rHDu6Hq29lIecrC8Ugkyb2ZQ45PMF5KYkbMK3XisN7y8qftMAKRWWRKOtYOYc563eP7DESgJ0fXh+8KBGjn2mX1Nz2rL53dw= Received: by 10.100.140.14 with SMTP id n14mr20452484and.65.1206434185222; Tue, 25 Mar 2008 01:36:25 -0700 (PDT) Received: by 10.100.105.20 with HTTP; Tue, 25 Mar 2008 01:36:25 -0700 (PDT) Message-ID: Date: Tue, 25 Mar 2008 14:06:25 +0530 From: "sathiya psql" To: pgsql-admin@postgresql.org Subject: postgresql is slow with larger table even it is in RAM MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1830_12492400.1206434185213" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200803/201 X-Sequence-Number: 28684 ------=_Part_1830_12492400.1206434185213 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dear Friends, I have a table with 32 lakh record in it. Table size is nearly 700 MB, and my machine had a 1 GB + 256 MB RAM, i had created the table space in RAM, and then created this table in this RAM. So now everything is in RAM, if i do a count(*) on this table it returns 327600 in 3 seconds, why it is taking 3 seconds ????? because am sure that no Disk I/O is happening. ( using vmstat i had confirmed, no disk I/O is happening, swap is also not used ) Any Idea on this ??? I searched a lot in newsgroups ... can't find relevant things.... ( because everywhere they are speaking about disk access speed, here i don't want to worry about disk access ) If required i will give more information on this. ------=_Part_1830_12492400.1206434185213 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dear Friends,
     I have a table with 32 lakh record in it. Table size is nearly 700 MB, and my machine had a 1 GB + 256 MB RAM, i had created the table space in RAM, and then created this table in this RAM.

    So now everything is in RAM, if i do a count(*) on this table it returns 327600 in 3 seconds, why it is taking 3 seconds ????? because am sure that no Disk I/O is happening. ( using vmstat i had confirmed, no disk I/O is happening, swap is also not used )

Any Idea on this ???

I searched a lot in newsgroups ... can't find relevant things.... ( because everywhere they are speaking about disk access speed, here i don't want to worry about disk access )

If required i will give more information on this. ------=_Part_1830_12492400.1206434185213--