SQL Server Performance Killer


This article outlines the major problem areas that badly affects SQL Server performance. If you already know this problem areas then you can design database and queries with better understanding. Few of them are poor indexing, inaccurate statistics, poor query design.

This article outlines the major problem areas that badly affects SQL Server performance. If you already know this problem
area then you can design database and queries with better understanding.

1. Poor Indexing: Without proper indexing SQL Server needs to retrieve and process much more data when executing. That
means more use of disk,memory and CPU, and also increased execution time. That can lead to bloacking and deadlocks.

2.Inaccurate Statistics: Accurate data distribution statistics are important for SQL Server so that it can design optimized
execution plan accordingly.

3.Poor Query Design: SQL queries should be written to make best use of indexes.Poorly designed queries can
lead to increased execution time and thus causing blocking and deadlocks.

4.Poor Execution Plans: Bad execution plans can result from parameter sniffing or inaccurate statistics. They will be reused
and will hurt performance badly.

5.Excessive Blocking and Deadloacks: It is critical to properly control the isolation levels and transaction scopes of
queries to minimize blocking and deadlocks.

6.Non-Set-Based Operations: Excessive use of cursors and loops leads to inefficient queries.Set based operations are much
more efficient.

7.Poor Database Design: Under-normalized database can result into more redundant data and thus more IO and more blocking.
Similarly over-normalized database can result into very complex joi queries.

8.Excessive Fragmentation: If the pages containing data are fragmented then that results in more IO and more blocking.

9.Nonreusable Execution Plans: Its take considerable time to create an execution plan for a query. So we need to design query
in such a way that there is no need to create execution plan on each execution. we can reuse execution plan.

10.Frequent Recompilation of Queries: Queries that recreate execution plans frequently consumes more server resources.

11.Improper use of cursors: Excessive use of cursors slows down the server.


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: