We consider the following problems asbeing responsible for the lowperformance of a Microsoft SQL Serversystem. After optimizing the hardware, theoperating system and then the SQL serversettings, the main factors which affect thespeed of execution are:1. Missing indexes;2. Inexact statistics;3. Badly written queries;4. Deadlocks;5. T-SQL operations which do notrely on a single set of results(cursors);6. Excessive fragmentation ofindexes;7. Frequent recompilation of queries.These are only a few of the factors whichcan negatively influence the performanceof a database. Further, we will discuss eachof the above situations and give moredetails.2. Missing indexesThis particular factor affects the most SQLServer’s performance. When missingindexing of a table, the system has to gostep by step through the entire table inorder to find the searched value. This leadsto overloading RAM memory and CPU,thus considerably increasing the timeexecution of a query. More than that,deadlocks can be created when forexample, session number 1 is running, andsession number 2 queries the same table asthe first session.Let’s consider a table with 10 000 linesand 4 columns, among which a columnnamed ID is automatically incrementedone by one.
đang được dịch, vui lòng đợi..
