pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig James <craig_james@emolecules.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: test / live environment, major performance difference
Date: Mon, 11 Jun 2007 11:26:55 -0700
Message-ID: <466D93EF.4010300@emolecules.com> (raw)
In-Reply-To: <20070611155849.GA8426@mail.planetcobalt.net>
References: <466D65CA.6000503@mecola.com>
	<20070611155849.GA8426@mail.planetcobalt.net>


On 2007-06-11 Christo Du Preez wrote:
> I really hope someone can shed some light on my problem. I'm not sure
> if this is a posgres or potgis issue.
>
> Anyway, we have 2 development laptops and one live server, somehow I
> managed to get the same query to perform very well om my laptop, but
> on both the server and the other laptop it's really performing bad.

One simple possibility that bit me in the past: If you do pg_dump/pg_restore to create a copy of the database, you have to ANALYZE the newly-restored database.  I mistakenly assumed that pg_restore would do this, but you have to run ANALYZE explicitely after a restore.

Craig




view thread (20+ messages)  latest in thread

Message-ID: <466D93EF.4010300@emolecules.com>
Permalink:  ../466D93EF.4010300@emolecules.com/
Also on:    postgresql.org/message-id/466D93EF.4010300@emolecules.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: craig_james@emolecules.com
  Subject: Re: test / live environment, major performance difference
  In-Reply-To: <466D93EF.4010300@emolecules.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