Do multiple transaction logs help performance?



By:

Multiple transaction log files absolutely does NOT help performance. Multiple data files, however, does help so I think people believe since multiple data files can be beneficial that multiple log files are. Not true.

The transaction log is sequential so SQL Server doesn’t perform parallel I/O’s to the transaction log if there are multiples. If your system does have multiple log files, the first file is used in its entirety, then the second file will be used, and so on.

The only time a second transaction log file might be needed is if the first transaction log is full and the transaction log won’t clear, it will then flip over to the second log file allowing database modifications until the first log file can clear.


Last Update: 3/25/2014




More SQL Server Solutions











Post a comment or let the author know this tip helped.

All comments are reviewed, so stay on subject or we may delete your comment. Note: your email address is not published. Required fields are marked with an asterisk (*).

*Name
*Email
Email me updates

Signup for our newsletter

I agree by submitting my data to receive communications, account updates and/or special offers about SQL Server from MSSQLTips and/or its Sponsors. I have read the privacy statement and understand I may unsubscribe at any time.






download





get free sql tips

I agree by submitting my data to receive communications, account updates and/or special offers about SQL Server from MSSQLTips and/or its Sponsors. I have read the privacy statement and understand I may unsubscribe at any time.



Learn more about SQL Server tools