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


SQL Server Mirroring


SQL Server Mirroring

Author
Message
D.K.Mishra
D.K.Mishra
Valued Member
Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)

Group: General Forum Members
Points: 71 Visits: 130
I have configured mirroring in Sql Server.

There is a update statement on my production server which works very fine before mirroring configuration but after mirroring configuration, its work very slow...

Can any one suggest me what i have to do to resolve this problem..

Please help me its very urgent bcz due to this my production server works very slow.



Regards
Dharmendra Kumar
09717765141Hehe
Erland Sommarskog
Erland Sommarskog
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5274 Visits: 875
Did you set mirroring to be synchronous or asynchrounous?

Could you post the code for the UPDATE statement?

How many rows does it affect, appoxamitely?

Erland Sommarskog, SQL Server MVP, www.sommarskog.se
D.K.Mishra
D.K.Mishra
Valued Member
Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)

Group: General Forum Members
Points: 71 Visits: 130
Hi,

I configure mirroring with High Safety with automatic failover mode,
approximately 3 Lac records updated on principal Server,
Erland Sommarskog
Erland Sommarskog
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5274 Visits: 875
With high safety, the statement does not complete until the update has been hardend in the log on the mirror. If you have a slow network connection, or the mirror has poor hardware, this can be painful with that many rows.

But that is still speculation, you need to gain knowledge what is actually taking time. On my web site there is a stored procedure, sp_sqltrace which permits you to run a batch and then compiles trace and wait-stats information about that batch. In this case the wait-stats information is the most important. If you see wait-stats with MIRROR in the name, the problem is as I suggested above.

You find sp_sqltrace on http://www.sommarskog.se/sqlutil/sqltrace.html.

Erland Sommarskog, SQL Server MVP, www.sommarskog.se
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