SQL SERVER – Performance Optimization of SQL Query and FileGroups

It is suggested to place transaction logs on separate physical hard drives. In this manner, data can be recovered up to the second in the event of a media failure. Placing tables, indexes and logs in the right FileGroups also helps performance.

SQL SERVER - Performance Optimization of SQL Query and FileGroups

In SQL 2005 When database is created without specifying a transaction log size, the transaction log will be re-sized to 25 percent of the size of data files.

Tables and their non-clustered indexes separated into separate file groups can improve performance, because modifications to the table can be written to both the table and the index at the same time.

If tables and their corresponding indexes in a different file group, they must be backed up the two file groups as a single unit as they cannot be backed up separately.

Set a reasonable size of your database and transaction log (25% of database size).

Leave the Autogrow feature ON for the data files and for the log files with reasonable size of autogrow increment.

Don’t set the autoshrink feature run the task during off-peak hours.

Place the log files on other physical disk arrays than those with the data files to improve I/O Performance.

Published by Pinal Dave on SQLAuthority. More of my work at pinaldave.com.

Best Practices, SQL Download, SQL Index
Previous Post
SQL SERVER – T-SQL Paging Query Technique Comparison – SQL 2000 vs SQL 2005
Next Post
SQL SERVER – Search Text Field – CHARINDEX vs PATINDEX

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.