Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL Server Mirroring Expand / Collapse
Author
Message
Posted Thursday, September 19, 2013 12:07 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, May 6, 2014 4:14 AM
Points: 17, Visits: 112

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
09717765141
Post #1496536
Posted Thursday, September 19, 2013 3:37 PM


Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Yesterday @ 3:40 PM
Points: 786, Visits: 690
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
Post #1496618
Posted Friday, September 20, 2013 12:37 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, May 6, 2014 4:14 AM
Points: 17, Visits: 112
Hi,

I configure mirroring with High Safety with automatic failover mode,
approximately 3 Lac records updated on principal Server,

Post #1496722
Posted Friday, September 20, 2013 1:27 AM


Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Yesterday @ 3:40 PM
Points: 786, Visits: 690
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
Post #1496730
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse