SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 implications of temporarily changing DB mode?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ferrethouse
Constraint Violating Yak Guru

305 Posts

Posted - 06/01/2012 :  11:59:54  Show Profile  Reply with Quote
I need to delete several clients from our shared database. I will be disabling the website tonight in order to do this. It takes about an hour to delete a client but if I change the recovery mode of the database to simple first then it takes half the time. But If I do that and then change it back to full after then the transaction logs are out of sync and useless right? Suggestions?

tkizer
Almighty SQL Goddess

USA
35007 Posts

Posted - 06/01/2012 :  12:29:58  Show Profile  Visit tkizer's Homepage  Reply with Quote
You have to run a full or diff backup to startup the tlog chain again after you switch back to FULL.

I don't understand why changing the recovery model speeds up performance. That doesn't make any sense. There must be something else going on here, such as severe IO issues.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

ferrethouse
Constraint Violating Yak Guru

305 Posts

Posted - 06/01/2012 :  16:01:08  Show Profile  Reply with Quote
quote:
I don't understand why changing the recovery model speeds up performance. That doesn't make any sense. There must be something else going on here, such as severe IO issues.



It is deleting about 18 million records so I guess not having to commit to the tlogs means it is faster.
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
35007 Posts

Posted - 06/01/2012 :  16:41:53  Show Profile  Visit tkizer's Homepage  Reply with Quote
quote:
Originally posted by ferrethouse

quote:
I don't understand why changing the recovery model speeds up performance. That doesn't make any sense. There must be something else going on here, such as severe IO issues.



It is deleting about 18 million records so I guess not having to commit to the tlogs means it is faster.



Nope. Transaction log is used regardless of recovery model. You've got something else happening here. Maybe autogrow problems and not often enough tlog backups?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000