C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Index Optimization Tips in SqlServer 2005


Posted Date: 02 Jan 2008    Resource Type: Articles    Category: Databases

Posted By: HimaBindu Veeramachaneni       Member Level: Diamond
Rating:     Points: 10



Indexes-- What are they?


These are similar to indexes in a book. As the index in a book helps in finding a specific topic, or a page. Indexes in database help in fetching the data easier and faster. We think that creating index improves the performance of the database query. But too many indexes may in turn reduce the performance as it may badly effect addition, updation or deletion operations. We need to be cautious in avoiding creation of unnecessary indexes.

Remember


Each index occupies some memory space. So we need to reduce the index creation to utilize space and reduce the reads required for index.When ever we create an index an index key is created. Index pages are used to create index keys. We always look for reducing number of index pages. If the size is less then the pages are less. So we need to look for creating indexes on smaller data type values rather than larger ones
Ex: Int has less size than char. Try to create indexes on columns that have int values rather than char

Guidelines


Here are some Guidelines for creating indexes.
Its always good practice to create indexes on Column/s that is used frequently in the WHERE, ORDER BY, and GROUP BY clauses.
Too many Indexes slow down the adding, deleting, and updating of rows as they accupies more space.
Index Wizard can be used to identify indexes that are not used in your queries.
Its always best to drop indexes that are not used to save the disk space.
Think and Analyze the queries performed before creating an index.
Create an index if its really needed.
Since we can have at most only one clustered index. Be cautious in choosing it.
Create clustered index that return a range of values or queries that contain group by or order by clauses.

Summary



Indexing Tips are explained




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Exception Handling in SQL Server with .Net
Previous Resource: When to use SELECT *
Return to Discussion Resource Index
Post New Resource
Category: Databases


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

efax

Contact Us    Privacy Policy    Terms Of Use