pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Kevin Quinlan <kquinlan@computer.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Estimation of SQL statements
Date: Sat, 24 Feb 2001 11:23:37 +0000
Message-ID: <3A9799B9.43F61817@archonet.com> (raw)
References: <000801c099ef$6ace91d0$79ac3318@kquinlan>

Kevin Quinlan wrote:
> 
> Are there any good techniques that estimate the time it will take to execute
> an SQL statement, specifically an INSERT, SELECT, UPDATE, or DELETE?  What
> factors are important to consider when estimating the execution time of
> these types of SQL statements?
> Thank you,
> Kevin

Complexity and size of statement, complexity and size of tables
involved, complexity and size of indices involved, amount of data (if
any) returned, RDBM design and implementation consideration, OS,
hardware, hardware loading, client design...

Really, you need to know what you are trying to acheive. The best way to
measure speed is to build a system and populate it with dummy data.
Then, analyse your results.

- Richard Huxton



view thread (2+ messages)

Message-ID: <3A9799B9.43F61817@archonet.com>
Permalink:  ../3A9799B9.43F61817@archonet.com/
Also on:    postgresql.org/message-id/3A9799B9.43F61817@archonet.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-sql@postgresql.org
  Cc: dev@archonet.com, kquinlan@computer.org
  Subject: Re: Estimation of SQL statements
  In-Reply-To: <3A9799B9.43F61817@archonet.com>
  References: <000801c099ef$6ace91d0$79ac3318@kquinlan> <3A9799B9.43F61817@archonet.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