Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Why in recovery for so long if database is in SIMPLE mode Expand / Collapse
Posted Tuesday, January 8, 2013 4:08 AM


Group: General Forum Members
Last Login: Tuesday, September 10, 2013 6:49 AM
Points: 21, Visits: 26

I have a database thats just undergone a very large insert into a table. The instance was restarted and now the database is in recovery mode.
The database is in simple mode.

I would have assumed that once the insert was done and commited the log would checkpoint itself soon after and there would be no long recovery. can anyone explain where my thinking on this might be wrong?
Post #1404121
Posted Tuesday, January 8, 2013 4:17 AM



Group: General Forum Members
Last Login: Saturday, December 3, 2016 5:18 AM
Points: 45,619, Visits: 44,147
Recovery model has no effect at all on recovery times.

Recovery time is a factor of how much needs to be undone or redone at startup. If it's taking forever, you likely had a large uncommitted transaction at time of shutdown or a large transaction that had committed but not yet written to the data file, possibly also VLF fragmentation.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1404130
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse