Re: very slow after a while... - Mailing list pgsql-general

From Ragnar Hafstað
Subject Re: very slow after a while...
Date
Msg-id 1112806867.31874.4.camel@localhost.localdomain
Whole thread Raw
In response to Re: very slow after a while...  (Costin Manda <siderite@madnet.ro>)
List pgsql-general
On Wed, 2005-04-06 at 18:18 +0300, Costin Manda wrote:

> The script does the following thing:
> 1. read the count of rows in two tables from the mssql database
> 2. read the count of rows of the 'mirror' tables in postgres
> these are tables that get updated rarely and have a maximum of 100000
> records together
> 3. if the counts differ, delete from the mirror table everything and
> reinsert everything.
> 4. THEN do the inserts that get updated on error

if you empty the table in step 3, why do you have to test for
the duplicate id error? are there duplicates in the mssql table?

gnari



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: very slow after a while...
Next
From: "Daniel Verite"
Date:
Subject: Re: lower function