all groups > sql server replication > june 2005 >
You're in the

sql server replication

group:

Optimal "set and forget" values?


Optimal "set and forget" values? Earl
6/7/2005 7:59:29 PM
sql server replication:
Is there an optimum "set and forget" value for automatic range identity?

Re: Optimal "set and forget" values? Hilary Cotter
6/7/2005 9:31:49 PM
Set it and forget it is best when you know you are never going to add new
subscribers.

When you set it you want to use values which are going to be valid for the
lifetime of your replication solution. So for high throughput solutions, it
could be in the millions; for low throughput solutions it could be in the
10's of thousands.

--
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
[quoted text, click to view]

Re: Optimal "set and forget" values? Earl
6/7/2005 11:11:22 PM
I have a merge solution which could have as many as 50 PocketPCs (unlikely)
or as few as 5-6. Right now, I'm using an identity increment of 1 and an
identity range of 1,000,000 for both the publisher and the subscriber. The
typical subscriber would add maybe 200 records (per table) on a day, merge
changes back to the main SQL database, then delete the subscription at the
client. So I suppose that this really becomes an unlimited number of
subscribers, since a new subscription is sent down every day? I'm trying to
forecast the future here and it seems pretty murky to me. Thanks for the
advice.



[quoted text, click to view]

Re: Optimal "set and forget" values? Hilary Cotter
6/8/2005 6:51:08 AM
you should be good for 2,147,483,648/1,000,000 -1 (to account for the
publisher) or roughly 2,146 subscribers. If all goes well and if you expect
less than 1 million rows to be added on your publisher and each subscriber
for the lifetime of your replication solution.

--
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
[quoted text, click to view]

Re: Optimal "set and forget" values? Earl
6/8/2005 5:10:59 PM
Thanks Hilary. My expectation is for less than 1 million rows on both
publisher and subscribers. One thing that still concerns me however -- when
I delete on-board databases (subscribers) and create anew, doesn't this
indeed create a new subscriber and eat up one of my "2,146 subscribers"?

[quoted text, click to view]

Re: Optimal "set and forget" values? Hilary Cotter
6/8/2005 9:30:28 PM
yes, when you create a new subscriber, whether the pda had an old one before
or not, the max identity value on the publisher will be updated. This max
value is consulted when incrementing an existing range or assigning a new
one.

--
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
[quoted text, click to view]

Re: Optimal "set and forget" values? Earl
6/9/2005 8:23:06 AM
Very helpful Hilary. Now I just need to make a minor change to my app so as
to ensure I do not have any long-term issues with the number of subscribers.
I've estimated that -- in most scenarios -- I would've run out of identity
ranges in about a year otherwise.

[quoted text, click to view]

AddThis Social Bookmark Button