Subject | Re: [firebird-support] Replicator pseudo-code (sorry, it's a little long...) |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2004-01-23T13:21:52Z |
On 21 Jan 2004 at 14:50, Milan Babuskov wrote:
Some ids below last replicated id may be not replicated if they
weren't commited at the replication moment.
SY, Dimitry Sibiryakov.
>> ------ Begin Pseudo ------I'm afraid this approach will fail with long-living transactions.
>> The 'Collector' queries each database, and retrieves any new changes.
>
>How do you plan on doing this?
>You can have a single one column table with one value: last replicated
>generator_id. Then just query each table if it has gen_id larger than
>that number.
Some ids below last replicated id may be not replicated if they
weren't commited at the replication moment.
SY, Dimitry Sibiryakov.