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

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

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

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

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


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:07 PM
Points: 42,812, Visits: 35,931
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 2008, MVP
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