By
Published: 11 Mar 2008
We have a large database on the "live server" with about 5 GB out of which 1.5 GB space is allocated by transaction log files. Also, our website executes 20,000 to 25,000 insertions daily. Occasionally, the website gives a 'Timeout Error' because this time database process gets locked or blocked. What is the best way to maintain such a large database?
There are a few things you should consider. You'll want to look at the queries which are causing the blocking. Usually this will be a SELECT statement which doesn't have the WITH (NOLOCK) option on it, or an UPDATE statement which is running against the database.
You can also look and see how much free space your database has and how often the database is extending the database. If the extend size is too large, this can cause database queries to timeout. With the database file being only 3.5 GB this probably isn't all that likely unless the disk drives are too overloaded. You can check to see if the disk drives are being overloaded by using performance monitor and checking the disk queue, reads per second and writes per second.
Dig Deeper on Microsoft SQL Server Performance Monitoring and Tuning
Discover a tool that synchronizes two SQL Server databases allowing changes to one SQL Server database to update on the other.
Continue Reading
Troubleshoot long running stored procedures with SQL Server Profiler by adding events to find the command with high run time.
Continue Reading
Is it possible to do a SQL Server search for a row with particular strings containing an underscore? Learn how to structure the WHERE clause to ...
Continue Reading