Subject | Re: [firebird-support] Creation of a "Replication Friendly" database. Any rules of thumb? |
---|---|
Author | Ann W. Harrison |
Post date | 2005-03-23T19:37:30Z |
acegracely wrote:
identifies the server and make all your keys two part - server and
generated value.
ibphoenix.com
>That's a start.
>
> I need to make my database replication friendly...
>
> Am I right in thinking that the easiest way is to make all primary
> keys an integer with a generator?
>Yup. But put a table in your database that contains a field that
> If so, will this fall over if replication is bi directional i.e.
> depending on the time interval between replications, both ends could
> add a number of records thus the generators could be out of sync.
identifies the server and make all your keys two part - server and
generated value.
>A Unique constraint will do.
> Also, how does this affect foreign key constraints IOW can I create a
> foreign key constraint on a unique index rather than the primary key
> field?
>The Firebird Book by Helen Borrie from APress, available through
> Is there any firebird documentation to help with this?
ibphoenix.com