pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Shadovitz <david@shadovitz.com>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Why is restored database faster?
Date: Tue, 16 Dec 2003 20:42:58 -0800
Message-ID: <01C3C415.93ADBCE0.david@shadovitz.com> (raw)

I backed up my database using pg_dump, and then restored it onto a different 
server using psql.  I see that the query "SELECT COUNT(*) FROM myTable" 
executes immediately on the new server but takes several seconds on the old 
one.  (The servers are identical.)

What could account for this difference?  Clustering?  How can I get the 
original server to perform as well as the new one?

Thanks.
-David



view thread (7+ messages)  latest in thread

Message-ID: <01C3C415.93ADBCE0.david@shadovitz.com>
Permalink:  ../01C3C415.93ADBCE0.david@shadovitz.com/
Also on:    postgresql.org/message-id/01C3C415.93ADBCE0.david@shadovitz.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: david@shadovitz.com
  Subject: Re: Why is restored database faster?
  In-Reply-To: <01C3C415.93ADBCE0.david@shadovitz.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