Re: Home-brewed table syncronization - Mailing list pgsql-sql

From Cliff Wells
Subject Re: Home-brewed table syncronization
Date
Msg-id 1057786137.15508.29.camel@software1.logiplex.internal
Whole thread Raw
In response to Home-brewed table syncronization  (Michael A Nachbaur <mike@nachbaur.com>)
Responses Re: Home-brewed table syncronization  (Michael A Nachbaur <mike@nachbaur.com>)
List pgsql-sql
On Wed, 2003-07-09 at 14:14, Michael A Nachbaur wrote:

> So, I'm looking at syncronizing 4 tables from one master database to several 
> child databases. I'm thinking of doing the following with DBD::Multiplex:
> 
> DELETE FROM TableA;
> INSERT INTO TableA (..) VALUES (...);
> ....
> 
> on all the child databases, but I'm not sure what kind of impact this would 
> have on my servers.  My impression is that this would hammer the indexes, and 
> might blow any memory optimization out the window.  Only a few records in my 
> dataset will change from time-to-time, but just the process of determining 
> what is different may take more effort than simply rebuilding.

Keep a timestamp associated with each record.  Only update the records
with timestamps later than your last sync.

-- 
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726  (800) 735-0555



pgsql-sql by date:

Previous
From: Michael A Nachbaur
Date:
Subject: Home-brewed table syncronization
Next
From: Michael A Nachbaur
Date:
Subject: Re: Home-brewed table syncronization