pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: nospam@hardgeus.com
To: Paul Lathrop <plathrop@squaretrade.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Defining performance.
Date: Thu, 30 Nov 2006 18:37:12 -0600 (CST)
Message-ID: <55688.71.81.36.247.1164933432.squirrel@www.hardgeus.com> (raw)

> 4) Much of my reading of the PG docs and list archives seems to suggest
that much of performance tuning is done at the query level - you have to
know how to ask for information in an efficient way.

Performance does not exist in a vacuum (ho ho, PostgreSQL joke).  The
person writing the queries has to understand what is actually happening
inside of the database.  When I ported my app from MS SQL over to
PostgreSQL several years ago, there were many queries that were previously
zippy that ran like turds on PostgreSQL, and vice-versa!

As my dataset has gotten larger I have had to throw more metal at the
problem, but I have also had to rethink my table and query design.  Just
because your data set grows linearly does NOT mean that the performance of
your query is guaranteed to grow linearly!  A sloppy query that runs OK
with 3000 rows in your table may choke horribly when you hit 50000.

John






view thread (11+ messages)  latest in thread

Message-ID: <55688.71.81.36.247.1164933432.squirrel@www.hardgeus.com>
Permalink:  ../55688.71.81.36.247.1164933432.squirrel@www.hardgeus.com/
Also on:    postgresql.org/message-id/55688.71.81.36.247.1164933432.squirrel@www.hardgeus.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-performance@postgresql.org
  Cc: nospam@hardgeus.com, plathrop@squaretrade.com
  Subject: Re: Defining performance.
  In-Reply-To: <55688.71.81.36.247.1164933432.squirrel@www.hardgeus.com>
  References: <55688.71.81.36.247.1164933432.squirrel@www.hardgeus.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