USEFUL SITES :
Write for Us
Indexes exist to make data selection faster, so the focus of this article is on ways you can select the best indexes for faster data retrieval. This is done in a two-step process.
Indexing can be quite a challenging task if you are not familiar with your databases, the relationships between tables, and how queries are written in stored procedures and embedded SQL. How many companies you have worked for have a proper ERD diagram of their databases and have followed the textbook method style of programming? In the real world, time is often limited, resulting in poor SQL Server database performance.
If you have been tasked with optimizing a database's performance (at least to a respectable level), or you want to be proactive with your databases to prevent potential future performance issues, following these steps should help you in tuning tables, just as they have helped me. These steps are applicable at any stage of project, even if a deadline is just around the corner.
Step One (Gathering Information)
Interact with the people who know about the database and its table structures. If you know it already, that’s great. This is very important and makes your life easier.
1) Identify key tables, based on:
2) Identify the most frequently called stored procedures/queries and list all of the tables used by them.
3) Get the SQL Profiler trace of :
It is advisable to write down information you collect in a document for later retrieval.
4) Before we dive into analyzing the information gathered, here are few things to keep in mind while tuning your tables: