Tip

Partitioning your tables in Microsoft SQL Server

Barrie Sosinsky, Contributor

There are many good reasons for partitioning the data in your database into smaller, separate tables. The reasons include: improved performance, reduced backup windows, better data protection and support for special needs of a particular set of users with their own data set.

Partitioning lets you work with a smaller group of records or locate a data set in an appropriate location or on the best server to suit your needs. Although you essentially partition your data in memory anytime you create a view, that set of records competes for I/O with the larger set of records. So although you can achieve a greater degree of normalization by minimizing the number of tables, there are advantages to be had when you de-normalize your tables.

Most database designers learn quickly that heavily used static data sets are candidates for isolation in a lookup file. Lookup files work best when they are narrow and long (a vertical partition) and especially when they operate against an index. Lookup files work less well for data placed into a wide and shallow table (horizontal partition). Creation of lookup files lets you isolate records that have high transaction traffic, which also lets you protect this data and locate the data in one or more locations. As a rule, heavily accessed data is most susceptible to corruption due to software errors, hardware errors like disk hot spots or user errors.

Heavily accessed data that changes frequently is also a good candidate for partitioning.

    Requires Free Membership to View

The loss of efficiency due to the additional overhead associate with extra tables is more than offset by your ability to optimize the operating environment for the data set. It's advantageous to place your most dynamic data on your fastest equipment and in the best protected environment; as well as locating that data set as close to the source of transaction as possible – as you might do for a remote office. When partitioning a database, consider adopting a physical topology that has a hierarchical storage structure.

Barrie Sosinsky is president of consulting company Sosinsky and Associates (Medfield MA). He has written extensively on a variety of computer topics. His company specializes in custom software (database and Web related), training and technical documentation.


This was first published in March 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.