Re: test / live environment, major performance difference

From: "Steinar H(dot) Gunderson" <sgunderson(at)bigfoot(dot)com>
To: Christo Du Preez <christo(at)mecola(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: test / live environment, major performance difference
Date: 2007-06-12 14:30:33
Message-ID: 20070612143033.GA8541@uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, Jun 12, 2007 at 03:32:40PM +0200, Christo Du Preez wrote:
> As an example I took a table with about 650 rows, having a parentid
> field with an index on parentid.

Try a bigger table. Using an index for only 650 rows is almost always
suboptimal, so it's no wonder the planner doesn't use the index.

/* Steinar */
--
Homepage: http://www.sesse.net/

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Bill Moran 2007-06-12 14:37:16 Re: How much memory PostgreSQL is going to use?
Previous Message Dave Dutcher 2007-06-12 14:28:11 Re: test / live environment, major performance difference