pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Derek Hamilton <derek@capweb.com>
To: pgsql-admin@postgresql.org
Subject: Re: Performance Expectations
Date: Fri, 18 Apr 2003 12:35:05 -0800
Message-ID: <20030418203505.2CC9E103C7@polaris.pinpointresearch.com> (raw)
In-Reply-To: <000501c305d7$b001a070$1b01a8c0@jcaves.net>
References: <000501c305d7$b001a070$1b01a8c0@jcaves.net>

Hard to say. Here are the initial questions I have:

What is the nature of the query? Returns single row or 10,000? Single table 
or multiple joined tables? Aggregates? Grouping?

Is the database updated often? How about vacuumed to manage on-disk size?

Is data delivered locally or over the wire? What is the client?

What platform (CPU, RAM, Disk, OS) and PG version?

What is the system load - single PG user or hundreds of simultaneous queries 
and running the web server and mail server, too? What does sar report for CPU 
and disk load?

If you are using a 7.3 version, what does psql report when you run the query 
with \timing on?

Out of curiosity I just did a quick search for all records for a single hour 
from a table that has part of our phone bill from last year (1.8 million 
records) and the result (810 records) was returned in under 0.5 seconds. This 
table resides on my desktop so I'm the only user but it's also far from a 
"server-class" machine.

Cheers,
Steve



On Friday 18 April 2003 11:24 am, Derek Hamilton wrote:
> Hello all,
>
> We're using PostgresQL with a fairly large database (about 2GB).  I have
> one table that currently exceeds 4.5 million records and will probably grow
> to well over 5 fairly soon.  The searching of this table is basically done
> on one field, which field I have set up a btree index on.  My question is,
> if I search this table and get the results back in about 6-7 seconds is
> that pretty good, not so good...?  What are the things I should look at in
> determining the performance on this?
>
> BTW, forgive the lack of information.  I'd be happy to post more info on
> the table, hardware, etc.  I just didn't want to overwhelm the initial
> question.
>
> Thanks,
> Derek Hamilton
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster




view thread (5+ messages)

Message-ID: <20030418203505.2CC9E103C7@polaris.pinpointresearch.com>
Permalink:  ../20030418203505.2CC9E103C7@polaris.pinpointresearch.com/
Also on:    postgresql.org/message-id/20030418203505.2CC9E103C7@polaris.pinpointresearch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: scrawford@pinpointresearch.com, derek@capweb.com
  Subject: Re: Performance Expectations
  In-Reply-To: <20030418203505.2CC9E103C7@polaris.pinpointresearch.com>
  References: <000501c305d7$b001a070$1b01a8c0@jcaves.net> <20030418203505.2CC9E103C7@polaris.pinpointresearch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox