Article View: borland.public.interbase.replication
Article #161Re: Home-made replicator...
From: Jonathan Neve
Date: Tue, 01 Jul 2003 06:23
Date: Tue, 01 Jul 2003 06:23
25 lines
2363 bytes
2363 bytes
Craig Stuntz [TeamB] wrote: > With asynchronous replication your referential constraints can't stop a > user on DB 1 from deleting a record referenced by a newly inserted > record on DB 2. > > In the real world, the easiest way to use replication is to establish > rules for who can change what which prevent conflicts from happening in > the first place and stick to them. This might mean that "average Joe" > users are allowed to insert lookup table entries but not delete them, > and that they are only allowed to edit records they create. Things > they edit will be sent to the master DB, and the rest of the DB, which > they are not allowed to change, is sent back from the master. I see. I hadn't though very much about all that. Currently, in my application, I make an empty update of the record the user wants to delete or update before letting them do so, and if there's a lock conflict, I show an error message. This works very well. Do you think there would be any way of doing the same sort of thing on the replicated system (e.g. Holding the record locked as long as the change hasn't been sent to the server)? How are conflicts handled with IBReplicator? Thanks, Jonathan Neve.
Technical Details
Message-ID:
<3f012904@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news-out.superfeed.net!propagator2-maxim!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3efc1db3@newsgroups.borland.com> <3efc4e0f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f89d7,a0215dc343694833 X-Google-Attributes: gidf89d7,public X-Google-ArrivalTime: 2003-06-30 23:31:07 PST Date: Tue, 01 Jul 2003 08:23:33 +0200 From: Jonathan Neve <jonathan@!nospam!microtec.fr> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.interbase.replication Subject: Re: Home-made replicator... References: <3efc1db3@newsgroups.borland.com> <3efc4e0f@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.11.22.149 Message-ID: <3f012904@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1057040644 213.11.22.149 (30 Jun 2003 23:24:04 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news-out.superfeed.net!propagator2-maxim!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail