| From: | CZUCZY Gergely <gergely(dot)czuczy(at)harmless(dot)hu> |
|---|---|
| To: | "sathiya psql" <sathiya(dot)psql(at)gmail(dot)com> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: postgresql is slow with larger table even it is in RAM |
| Date: | 2008-03-25 08:41:47 |
| Message-ID: | 20080325094147.40317ea2@twoflower.in.publishing.hu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
May I ask, do you have any indeces or a primary key on that table?
On Tue, 25 Mar 2008 14:06:25 +0530
"sathiya psql" <sathiya(dot)psql(at)gmail(dot)com> wrote:
> 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.
--
Üdvölettel,
Czuczy Gergely
Harmless Digital Bt
mailto: gergely(dot)czuczy(at)harmless(dot)hu
Tel: +36-30-9702963
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Uwe C. Schroeder | 2008-03-25 08:42:14 | Re: postgresql is slow with larger table even it is in RAM |
| Previous Message | sathiya psql | 2008-03-25 08:36:25 | postgresql is slow with larger table even it is in RAM |