Call now: (800) 766-1884  


 Home


SQL Server Tips
SQL Server Training

SQL Server Consulting
SQL Server Support


 

 

 

   
  SQL Server Tips by Robin Schumacher

Look for Object-Based Solutions

Reworking join predicates and using subqueries instead of joins can produce dramatic differences in query response time. However, the technique required to help a slow running piece of SQL often includes adding or altering something at the physical design level. An upcoming section of this chapter will deal with this topic in more detail. For now, just know that one should always be thinking about what can be done at database level to enhance query speed. For example:

  • Adding new indexes to eliminate scan operations.

  • Altering existing indexes to create covering indexes or increase the effectiveness of composite indexes.

  • Altering the clustered index choice for a particular table.

  • Removing indexes for tables that are the targets of heavy BCP or INSERT, UPDATE and DELETE operations. Indexes may be added once data modification tasks have finished.

  • Denormalizing an excessively normalized database to decrease join operations.

  • Building a reporting sub-structure that can support resource intensive SELECT queries.

  • Partitioning data to reduce table width or data volumes. This must be manually performed in SQL Server 7 – 2000, but can be done through DDL in SQL Server 2005.

  • Pinning small lookup tables in memory to speed access to data that is often referenced.

  • Investigating the use of data archive software that archives older, seldom used data onto other servers, which can still be accessed if need be, and leaves often referenced data on the primary server.

  • Putting a plan in place to automatically eliminate fragmentation in indexes and tables that are subject to actions that frequently disorganize them.


The above book excerpt is from:

High-Performance SQL Server DBA
Tuning & Optimization Secrets

ISBN: 0-9761573-6-5
Robin Schumacher

 http://www.rampant-books.com/book_2005_2_sql_server_dba.htm  

 

image


 

 


 

 

 

 

Note: The pages on this site were created as a support and training reference for use by our staff of DBA consultants.  If you find it confusing, please exit this page.

Errata?  SQL Server technology is changing and we strive to update our SQL Server support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail: info@remote-dba.net and include the URL for the page.
 


Burleson Consulting
SQL Server database support

 

Copyright © 1996 -  2006 by Burleson Enterprises, Inc. All rights reserved.

Hit Counter