all groups > sql server replication > may 2007 >
You're in the

sql server replication

group:

Million records table


Million records table l.coronati NO[at]SPAM p3italy.it
5/17/2007 2:23:18 AM
sql server replication:
Hi everybody,
I set up a merge replication on Sql2K with one publisher/distributor
and 6 anonymous subscribers that run msde.
The db is growing bigger and bigger and i can't understand why.
I noticed that some of the MS_xxxxx tables are very large: in
particular one is 16.7 millions and another over 770K. Is there a way
to reduce/shrink these tables?
Thanks
Lorenzo
RE: Million records table Paul Ibison
5/17/2007 8:32:04 AM
How many rows are being modified (inserted/updated/deleted) in the replicated
articles? I would expect this to be a similar order of magnitude to the
msmerge-contents, msmerge_tombstone tables. These tables will be
automatically cleared down during synchronization as part of the meta data
cleanup naturally run in merge by sp_mergemetadataretentioncleanup so
normally you don't need to do anything - the rows will be removed as they
reach the retention period defined in the publication.
HTH,
Paul Ibison
Re: Million records table lorenzo
5/22/2007 8:00:22 AM
[quoted text, click to view]

Hi Paul,
i don't know exactly haw many rows are being modified, but i can tell
you that the largest replicated table counts less than 130000 records
and i'm sure only a small part of these are changed/added/deleted
the msmerge_tombstone now counts almost 7 millions rows
i'm having some timeout troubles when i synchronize and i often get
the "can't enumerate changes" error
now i'm checking all my tables and indexes to see if some are missing
(the publication is partitioned with dynamic filtering)
thanks a lot for your help
lorenzo
Re: Million records table Paul Ibison
5/22/2007 9:09:59 PM
I'd do a join between the msmerge_tombstone table and sysmergearticles. Make
it a group by on article name and count the records per article then compare
this to the rowcounts. It may be that there are other articles/publications
contributing that you haven't accounted for, but even if not, this should
clarify the situation a bit.
HTH,
Paul Ibison

Re: Million records table lorenzo
5/24/2007 3:10:56 AM
Paul Ibison:
[quoted text, click to view]

that was a great idea, Paul
i found that there are over 5 million rows relating to a view that
returns 4800!
now i know what to investigate ;-)
AddThis Social Bookmark Button