Re: Postgres & large tables on average machine

From: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Postgres & large tables on average machine
Date: 2002-03-29 18:45:14
Message-ID: Pine.LNX.4.21.0203291842000.578-100000@ponder.fairway2k.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, 29 Mar 2002, Nicholay P. Chuprynin wrote:

>
> Hello, All!
> Resently I had to create and manage the (relatively) large table.
> In the mean time it's about 8 million rows, and surely will grow above
> this size.
> The problem is that queries takes absolutely not acceptable time.
> Database located on average Celeron 400 machine with 128 Mb of RAM and
> UDMA 33 capable IDE drive.
> I run PostgreSQL 7.1 on Debian Linux with 2.4.18 kernel.
> My question is what could be done in order to improve the performance?
> I mean, is that normal behavior for Postgres on such computer or I
> encounter a misconfiguration?
>
> Nicholay

It all depends. We'd need more information about the DB and the query before
being able to say anything. Have you tried EXPLAINing the query?

I have a 1 million row table in a DB hosted on a 333MHz Celeron, 96MB. A full
sequential scan takes something like 30 seconds (I think) whereas queries using
an index are sub second.

--
Nigel J. Andrews
Director

---
Logictree Systems Limited
Computer Consultants

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message MG 2002-03-29 20:26:07 PgSQL postmaster.opts
Previous Message Peter Eisentraut 2002-03-29 18:42:49 Re: Postgres & large tables on average machine