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.

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.

Reference : Pinal Dave (https://blog.sqlauthority.com)

, ,
Previous Post
SQL SERVER – Fix: HResult 0x274D, SQLCMD Level 16, State 1 Error: Microsoft SQL Native Client : Login timeout expired
Next Post
SQL SERVER – Fix: Server: Msg 7391, Level 16, State 1, Line 1

Related Posts

Leave a Reply

Menu