🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.replication
Article #78

Re: How IBReplicator updates the target

#78
From: Steve Ball
Date: Wed, 18 May 2005 12:24
49 lines
2493 bytes
IBReplicator will log an insert and and update in this example. It will 
perform an insert and an update, however the update will basically do 
nothing if they run at the same time as when it does the insert it takes the 
data on the record as of the start of replication.

eg.
DB1 > Add record
ID = 1 Name = James Birthday = ???
DB1 > Update to
ID = 1 Name = James Birthday = 24/04/77

Replicate now
DB2 will take the insert from DB1 and add
ID = 1 Name = James Birthday = 24/04/77
and will then see an update (and do nothing)
ID = 1 Name = James Birthday = 24/04/77

If you want to get really clever you can use Stored procedures and replicate 
to the stored procedure to make sure certain events and actions have 
happened after an update. (not sure of your specifics, but this is possible)

Hope that helps
Steve

"Massimiliano Trezzi" <support_leavethis_@intesanet.com> wrote in message 
news:42885d2c@newsgroups.borland.com...
>
> Hi,
>
> Maybe I need to use IBReplicator, but before trying it, I have to know a 
> thing about how it works.
> I need an update strategy like this: every modification to the source 
> database must have the same modification (Insert-Update-Delete) in the 
> target.
> If the source insert a record and then it updates it (maybe in the same 
> transaction), it this must be handled with an Insert and an Update on the 
> target.
> I know that this is not very optimized, but in the context I need 
> replication it must works in this way.
> Can it work like this?
>
>
> Thank you in advance,
>    Massimiliano Trezzi
>
>
>
>
> 
Technical Details
Message-ID: <428b340f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <42885d2c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f89d7,ca2e2238e5539aaf
X-Google-Attributes: gidf89d7,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Steve Ball" <SteveBall@noSpam.uku.co.uk>
Newsgroups: borland.public.interbase.replication
References: <42885d2c@newsgroups.borland.com>
Subject: Re: How IBReplicator updates the target
Date: Wed, 18 May 2005 13:24:51 +0100
Lines: 51
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 213.152.35.34
Message-ID: <428b340f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116419087 213.152.35.34 (18 May 2005 05:24:47 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail