SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Training
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


FAQ Topics

All FAQ's
General DBA
General Developer
DBA Performance Tuning
Developer Performance Tuning
Clustering
Error Messages

USEFUL SITES :

ASP.NET Tutorials
Windows and SQL Azure Tutorials
Cloud Hosting Magazine
SharePoint Tutorials
Windows Server Help

Write for Us

Share your SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server

More     
 
Latest FAQ's

Add Node to A SQL Server failover Cluster failed with invalid ...
SQL Server Destination remote server error
Setting Up Data And Log Files For SQL Server
Will Check Constraints Improve Database Performance?

More     
   
Latest Software Reviews

dbForge Review
Spotlight on ApexSQL Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Data Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Doc 2008

More     

We have a started experiencing a performance issue with a table that has now grown to over 600,000 rows.



Question

We have a started experiencing a performance issue with a table that has now grown to over 600,000 rows. Performance has become unsatisfactory when accessing this table. I haven't ever run DBCC INDEXDEFRAG on this table. I was wondering if after running it on this table, if performance will improve? Does the performance problem I am having in any way relate to the SQL Server log files? Do I need to clear the SQL Server log files?



Answer

The slowness you are experiencing in this table can be caused by a number of different reasons. You might want to investigate each of the following possibilities to help resolve your problem.

  1. Indexes do need to be rebuilt on a regular basis in order for them to run as efficiently as they can. If you have never rebuilt the indexes on this table before, then you will want to do this as your first step to resolving your performance problem.

    I rebuild the indexes on every table in each of my databases on all my servers on a weekly basis. This can sometimes take a long time and use up valuable server resources. Because of this, you should perform your index rebuilds at a time when your server is not very busy. Generally, but not always, performance will increase after your indexes have been rebuilt. For more information on how to do this, see this
    webpage.
  2. Perhaps the data has changed enough in your database that the current indexing scheme is no longer the best one. Capture a Profiler Trace of the queries run against the database and run the Index Wizard or Database Engine Tuning Advisor against the trace to see if it recommends any changes in indexing.
  3. What is the Buffer Cache Hit Ratio running? Perhaps the tables have gotten so large that you don't have enough RAM to fit all the data into memory that should be there. Ideally, the ratio should be close to 100%. If the Buffer Cache Hit Ratio is running at less than 90%, you need to add more RAM to your server.
  4. Perhaps your I/O disk subsystem isn't big enough to handle the extra data. How busy are your disk arrays? You may need to boost the performance of your disk array.
  5. Perhaps your database's design is not efficient. When there isn't much data in a database, many design problems don't show up. But when lots of data is added, then poor database design can rear its ugly head and cause performance problems. Review your database design to see if it is properly normalized.

The SQL Log files are automatically truncated each time you back them up. I am assuming that you are backing them up regularly (like once an hour or so). If not, then you need to start doing so.

Generally speaking, whether or not SQL log files are truncated or not should not affect the performance of a particular table, as you have described in your question.








C# Help and Tutorials | PHP MySQL Tutorial | Sharepoint Tutorial | Azure Tutorial | Cloud Hosting Magazine | ASP.NET Tutorials | Windows Server Help | Windows Phone Pro | Silverlight Ace | Visual Studio Tutorials | Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | SQL Server Training Videos | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 2010 Jude O'Kelly. All rights reserved