SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


distribution database maintenance


distribution database maintenance

Author
Message
deep_kkumar
deep_kkumar
Mr or Mrs. 500
Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)

Group: General Forum Members
Points: 595 Visits: 756
How often we need perform maintenance tasks on distribution database? As the data is continuously populated and deleted from the distribution tables, the fragmentation on most of the indexes will be hitting above 90 percent very frequently. Any recommendations ?
MysteryJimbo
MysteryJimbo
SSCarpal Tunnel
SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)

Group: General Forum Members
Points: 4919 Visits: 15346
It depends a little on how much data is building up and if its causing an issue. In a high throughput distribution db you can have the replication cleanup jobs running every few minutes to keep the data levels low (assuming the distribution agent is doing its job).

With low data levels index fragmentation isn't a problem.
deep_kkumar
deep_kkumar
Mr or Mrs. 500
Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)

Group: General Forum Members
Points: 595 Visits: 756
MysteryJimbo (10/31/2013)
It depends a little on how much data is building up and if its causing an issue. In a high throughput distribution db you can have the replication cleanup jobs running every few minutes to keep the data levels low (assuming the distribution agent is doing its job).

With low data levels index fragmentation isn't a problem.


Very min data is retained in the distribution database. Recently we are continuously experiencing blocking(>30 mins) on distribution server which in turn causing latency. Trying to figure out exactly what's causing this issue?

the most common causes of blocking are with distribution clean up job blocking the update statements on msdistributin_history table and the rest related to msrepl_commands table.
MysteryJimbo
MysteryJimbo
SSCarpal Tunnel
SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)

Group: General Forum Members
Points: 4919 Visits: 15346
That is pretty common and is down to some barely acceptable code (in my opinion) in the clean up procs. In many cases some of this code isn't even required. I've seen the same job issues many times over, in many environments.

I resolved the deadlock issues in my environment by creating my own versions of the MS procs. It's generally not a problem with distribution database itself.
deep_kkumar
deep_kkumar
Mr or Mrs. 500
Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)Mr or Mrs. 500 (595 reputation)

Group: General Forum Members
Points: 595 Visits: 756
I appreciate if you can provide more information on the custom stored procs.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search