Re: CommitBatchSize vs. CommitBatchThreshold for transactional distrib
- From: KVD <kendal.vandyke@xxxxxxxxx>
- Date: Mon, 27 Oct 2008 11:17:15 -0700 (PDT)
I re-ran my tests and I am always seeing CommitBatchThreshold + 1
commands delivered to the subscriber. Maybe someone at Microsoft who
reads this can chime in on why this is happening, otherwise it sounds
like a bug to me. Not a showstopper, of course, but still not what is
expected based on documentation.
I also confirmed the bit about transactional boundries; I had
CommitBatchThreshold set to 5 and CommitBatchSize set to 1,000, then I
ran a transaction (one the publisher) where I update 10 rows one at a
time and commit. In Profiler I see a single transaction with 10
updates. When I run the 10 updates outside of a transaction on the
publisher I see transactions with 6 and 4 updates at the subscriber.
Unfortunately I don't think the concept of transaction vs. command is
very clearly explained either, since a command is really autocommit
transaction. It would probably cause less confusion to explain how the
values work if it's phrased more in terms of explicit vs. autocommit
transactions.
Thanks for your help,
Kendal Van Dyke
http://kendalvandyke.blogspot.com/
On Oct 24, 10:15 pm, Hilary Cotter <hilary.cot...@xxxxxxxxx> wrote:
commit batch size is the number of transactions before a commit, commit.
batch threshold is the total number of commands before a commit. These
commands could be in different transactions, so its the lesser of these
values which will trip a commit.
However what is key to remember in this case is that the distribution agent
always honors transactional boundaries.
The only problem with your tests is test #3. If it was 5 and 2 it would make
more sense. I am wondering if perhaps they was a gap between the first 6 and
the last one.
- Follow-Ups:
- Re: CommitBatchSize vs. CommitBatchThreshold for transactional dis
- From: Paul Ibison
- Re: CommitBatchSize vs. CommitBatchThreshold for transactional dis
- References:
- Prev by Date: RE: CommitBatchSize vs. CommitBatchThreshold for transactional dis
- Next by Date: Re: SQL 2005 Transaction Replication and Indexed Views
- Previous by thread: RE: CommitBatchSize vs. CommitBatchThreshold for transactional dis
- Next by thread: Re: CommitBatchSize vs. CommitBatchThreshold for transactional dis
- Index(es):
Relevant Pages
|