pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Charles Day <chaday@symix.com>
To: 'pgsql-sql@postgreSQL.org' <pgsql-sql@postgreSQL.org>
Subject: updating database
Date: Wed, 4 Nov 1998 11:26:29 -0500
Message-ID: <01EAC2C24C98CF119E7A00009291330502E89151@mailman.bkb.symix.com> (raw)

We have a knowledge base that needs updated every night from a text file.
Currently a script deletes everything from a table and adds the new data.
This procedure seems to slowly cause the database to loose performance
daily.  It also leaves our database useless for several hours starting at
midnight.  I thought about using 2 databases, updating one while using the
other, then swapping them every day.  I also thought about having one
db.out, then the other in.

Is there a better way to do this?

Thanks in advance.

Charles Day



view thread (4+ messages)  latest in thread

Message-ID: <01EAC2C24C98CF119E7A00009291330502E89151@mailman.bkb.symix.com>
Permalink:  ../01EAC2C24C98CF119E7A00009291330502E89151@mailman.bkb.symix.com/
Also on:    postgresql.org/message-id/01EAC2C24C98CF119E7A00009291330502E89151@mailman.bkb.symix.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: chaday@symix.com
  Subject: Re: updating database
  In-Reply-To: <01EAC2C24C98CF119E7A00009291330502E89151@mailman.bkb.symix.com>
  References: <01EAC2C24C98CF119E7A00009291330502E89151@mailman.bkb.symix.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