I have heard that high numbers of VLF's aren't good. It can impact performance and can delay recovery time, so I wanted to test that.I created 2 DBs with 100MB datafile and 50MB logfile.TestDB log file had 100MB autogrowthTestDB2 log file had 1% growth.I inserted 1048576 records, took the backupRan DBCC loginfo and TestDB had 40 VLFs and TestDB2 had 165 VLFs but when I restored both DBs, this is what I got.TestDB:RESTORE DATABASE successfully processed 42258 pages in 4.420 seconds (74.691 MB/sec).SQL Server Execution times: CPU Time = 125ms, elapsed time = 8323 ms.TestDB2:RESTORE DATABASE successfully processed 42257 pages in 3.943 seconds (83.724 MB/sec).SQL Server Execution Times: CPU time = 109 ms, elapsed time = 8314 ms.Question is: Where is the difference? How TestDB which has 40 VLFs are better than TestDB22 which has 165 VLFs.
↧