From: Steinar H. Gunderson <sgunderson@bigfoot.com>
To: Christo Du Preez <christo@mecola.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: test / live environment, major performance difference
Date: Tue, 12 Jun 2007 16:30:33 +0200
Message-ID: <20070612143033.GA8541@uio.no> (raw)
In-Reply-To: <466EA078.20601@mecola.com>
References: <466EA078.20601@mecola.com>
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/
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: sgunderson@bigfoot.com, christo@mecola.com
Subject: Re: test / live environment, major performance difference
In-Reply-To: <20070612143033.GA8541@uio.no>
* 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