August 22, 2010

Using SORT_IN_TEMPDB to improve Index Performance

The SORT_IN_TEMPDB option directs the index creation processing to the tempdb database, instead of the database in use.

This option may increase rebuild performance for large tables on a high activity environment, if the tempdb system database is located on a separate disk. Although the index creation time may decrease, the disk space requirements increase while using this option.

Note: Make sure a dedicated disk is allotted to the tempdb database and it has sufficient disk space. When using the SORT_IN_TEMPDB option, DBA’s usually calculate the disk space requirement while doing capacity planning.

By default SORT_IN_TEMPDB is OFF. You can enable this option as shown below:

DBNm.TableNm (ColumnName)

Did you like this post?
kick it on
subscribe via rss subscribe via e-mail
print this post follow me on twitter

About The Author

Suprotim Agarwal, ASP.NET Architecture MVP works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He has also written an EBook 51 Recipes using jQuery with ASP.NET Controls.

Follow him on twitter @suprotimagarwal



0 Responses to "Using SORT_IN_TEMPDB to improve Index Performance"

Copyright © 2009-2016 All Rights Reserved for by Suprotim Agarwal | Terms and Conditions