preview

Relational Database Management System

Good Essays

SQL Server has a reputation of being the one of the most trusted relational database management system as it provides great security, reliability, and scalability features. But it is also quite complex and when the size of database grows, the response time required for a query also extends. To overcome such situations, the administrators need to perform a smooth SQL tuning which will ensure that SQL statements will run as fast as possible. There are different aspects related to the program and many possible options to consider if you really want to tune a SQL Server platform.
Here are some tips which the database administrators can apply to make some small changes to tune the SQL Server and minimize the response time required for every …show more content…

Example,
Query A takes 1 hour to process.
Query B takes 5 minutes to process.
Query A is non-urgent query eligible to nurse-availability.
Query B is urgent query eligible to nurse-availability.
As both queries are eligible to nurse-availability, then if the Query A is being processed and in the meantime there is a request from Query B, then Query A will be paused and Query B will be processed.

3. Check the Index usage quite often –
Sys.dm_db_index_operational_stats() DMF is quite underutilized tool which can provide a great information about index usage. By using this DMF tool you may be able to gather all the vital information required to determine which index is being used and which used to be used next. It will even let you know various things like time elapsed for processes, latching and locking.

4. Rebuilt the index after SQL server update –
It is quite normal for a business to upgrade its SQL server platform from old to a newer one. But sometimes this upgrade makes the performance of different queries changed. Earlier any query which used to execute in 30 seconds would now will take 15 minutes. It happens because the query execution plan is different in each SQL Server version. Furthermore, the sequence of table nested loops/Inner Joins are also different. Since SQL server works in live environment, so amending the queries is quite different.

Get Access