Re: replication settings
- From: "Hilary Cotter" <hilary.cotter@xxxxxxxxx>
- Date: Sat, 4 Feb 2006 07:21:56 -0500
Logical Records will prevent child records from being inserted before parent
records, which will cause a merge agent failure in SQL 2000, but not be
logged as a conflict.
The way it works in SQL 2000 is that if you get such a failure during a
sync, the offending row is put in a retry queue and at the end of the batch
the offending row(s) is tried again. If your generations per batch is large
enough and the parent has already gone it, it will succeed. If not your
agent will fail and chances are next time you start your agent the row will
sync correctly. Many dba's use the NFR clause on their constraints to
prevent this from occurring.
As you can imagine this has performance implications.
Logical records makes sure all rows are inserted in the correct order from
the start. But they should not cause more conflicts than in SQL 2000. With
the NFR clause in place it is possible that you will get orphaned child
records in your tables and the parent row will be logged in the conflict
tables.
I fail to understand why you think they might generate more conflicts. Can
you help me out here, I could be missing something again:)
--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Troy Wolbrink" <wolbrink@xxxxxxxx> wrote in message
news:uMXm6tSKGHA.3856@xxxxxxxxxxxxxxxxxxxxxxx
With SQL 2005, related rows are grouped together in logical records and
inserted in the correct order ...
That's good to know. I will assume that exisitng constaints with that
property set will perform in the same way too.
I looked into it (logical records), and let's say you have a customer (for
example) with orders, and the customers table has a "TotalOrdersAmount"
column. You can tell SQL Server 2005 to treat a customer and all their
records as one big record. While this sounds good, it seems to make
conflicts much more likely. I think in a case like this I'd much rather
look into a way of keeping "TotalOrdersAmount" up to date without using
this feature. But perhaps it would have more use in cases where conflicts
are less likely.
--Troy
.
- References:
- 2005: replication settings
- From: TCorp
- Re: replication settings
- From: Hilary Cotter
- Re: replication settings
- From: Troy Wolbrink
- Re: replication settings
- From: TCorp
- Re: replication settings
- From: Troy Wolbrink
- 2005: replication settings
- Prev by Date: Re: replication settings
- Next by Date: Re: Replication Triggers
- Previous by thread: Re: replication settings
- Next by thread: Re: replication settings
- Index(es):
Relevant Pages
|