Skip site navigation (1) Skip section navigation (2)

Re: Defining performance.

From: Tobias Brox <tobias(at)nordicbet(dot)com>
To: nospam(at)hardgeus(dot)com
Cc: Paul Lathrop <plathrop(at)squaretrade(dot)com>,pgsql-performance(at)postgresql(dot)org
Subject: Re: Defining performance.
Date: 2006-12-01 01:15:54
Message-ID: 20061201011554.GA27123@oppetid.no (view raw or flat)
Thread:
Lists: pgsql-performance
[nospam(at)hardgeus(dot)com - Thu at 06:37:12PM -0600]
> 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.

Then some limit is hit ... either the memory cache, or that the planner
is doing an unlucky change of strategy when hitting 50000.

Anyway, it's very important when testing queries that they actually are
tested on a (copy of the) production database, and not on an empty
database or a database containing some random test data.  If testing
queries off the production database, it's important to have equal
hardware and configuration on both servers.


Responses

pgsql-performance by date

Next:From: Mark KirkwoodDate: 2006-12-01 01:47:24
Subject: Re: Bad iostat numbers
Previous:From: Tobias BroxDate: 2006-12-01 01:07:54
Subject: Re: Defining performance.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group