SQL Server Performance Tuning methodology and common tools, SQL Server Tuning
In earlier articles, we mentioned the DETECT methodology in Performance Tuning. Here we will briefly review
Label:Original: SQL Server Tuning series advanced (How to index tuning)ObjectiveIn the previous article we analyzed the role of statistical information in the database, and we have learned how the database uses statistics to control the distribution of the contents of tables in the database. Children's shoes are not cl
Label:Objective About SQL Server Tuning series is a huge content system, not a word two words can be analyzed clearly, this article first in the SQL tuning in the most commonly used query plan to parse, to do a good job of the basic grasp, tamping basic skills! Then we talk
Tags: ATI latest sel Opening technical file reference tis onlineNow has been doing the project, the amount of data is relatively small, at the beginning of the time did not feel, because it is just beginning, the amount of data is very small, in the process of the use of speed is very fast, but with the constant growth of data volume, found that the program is more and more slow, even the problem of timeouts, so to the program Early project is relatively tight, not for the Big Data volume busine
I. Preface
Index plays an important role in database performance. The advantages and disadvantages of index design directly affect the efficiency of DB execution. Therefore, when performing DB tuning, some of them will start to process the index. SQL server also provides a good tool for Database Engine Tuning Advisor a
can avoid Key lookup is perfect, let's revise non-clustered index to include it in the index with the Include keyword His fields are:[SQL]
DROP INDEX idx_non_clust_salesorddetaildemo_modifieddate on salesorddetaildemo
GO
CREATE nonclustered INDEX idx_non_clust_salesorddetaildemo_modifieddate on salesorddetaildemo (ModifiedDate)
INCLUDE
(
ProductID,
UnitPrice
)
GO
--Clear the cache, only for the development environment!
DB
, using Microsoft's previous case library (Northwind) for analysis, part of the content will also be applied to another Microsoft Case Library AdventureWorks Trust the Friends of SQL Server, both libraries are not too unfamiliar. Conceptual understanding The so-called indexes, like other types of data pages in SQL Server
analysis, part of the content will also be applied to another Microsoft Case Library AdventureWorksTrust the Friends of SQL Server, both libraries are not too unfamiliar.Conceptual understandingThe so-called indexes, like other types of data pages in SQL Server, are fixed 8KB (8192 bytes), stored in the same b-tree st
Client protocols
Aliases
The Protocol is the same as (2). You can specify more configurations.
3. sp_configure/reconfigure
Displays or changes the global configuration settings of the current server. Many configurations need to be set through sp_configure.
Syntax:
sp_configure [ [ @configname = ] 'option_name' [ , [ @configvalue = ] 'value' ] ] reconfigure
For example:
To configure advanced options with sp_configure, you must first run sp_
Label:ObjectiveIn the previous article, we analyzed the usage of query hint as the first of the last play module of tuning series. Interested can click to view: SQL Server Tuning Series play turn (how to run with query hint (Hint) bootstrap statement)This article continues to play the contents of the module, the same,
Original: SQL Server Tuning Series play turn three (use index hint (Hint) to boot statement maximum optimization run)ObjectiveThis article continues to play the content of the module, about the location of the index in SQL Server No need to say, this article will analyze how
SQL Server Tuning Series Article summary: This is a series of articles on SQL Server tuning, which basically covers the decomposition of the query operations we write in the day and the tuning
Label:Original: SQL Server Tuning series play Turn II (how to run with the aggregation joint hint (Hint) bootstrap statement)ObjectiveIn the previous article, we analyzed the usage of query hint as the first of the last play module of tuning series. Interested can click to view: SQ
Label:Original: SQL Server Tuning Series advanced (in-depth profiling statistics)ObjectiveAfter the analysis of the previous few, in fact, in general has been the first glimpse of the importance of SQL Server statistics, so this article will be sacrificed this artifact.This
statistic changes more than 500.
For a table with a data volume greater than 500 rows, when the first field data of the statistic changes more than the 20%* (total data volume of the table). So for larger tables, SQL Server recalculates the statistics only after more than 1/5 of the data has changed.
2, the temporary table can also have statistics information. This is one of the reasons why tempor
Original: 2-year summary of SQL Server DBA tuning2 years SQL Server DBA Summary of tuningWhen I was 2 DBA I felt that there was something that needed to be shared with everyone to discuss the book first.Book List1. "In-depth analysis of SQL
Original: SQL Server Tuning Series Basics (subquery operations Summary)ObjectiveIn the previous articles, we introduced a series of descriptions of operators and the optimization methods and techniques for each operator. This includes a series of our common operators, including how to view execution plans, how several datasets are commonly used, how to join opera
executed using the index ....First the nonclustered index contains the column: [Orderid],[customerid]The value we want to get is filtered according to Shippostalcode, so to get the result you have to do a single scan of the nonclustered index (index Scan), which can also, after all, nonclustered indexes are ordered, but in order to filter, you must introduce a bookmark lookup (Key Lookup) To filter, we know that the bookmark lookup is random io, the consumption is huge, so this filter is like i
2YearSQL Server DBAOptimization Summary
When I was a dBA for two years, I felt that some things needed to be shared and discussed with you.
Book order
1. "in-depth analysis of SQL Server 2008 series" is the technical insider series of MSSQL 2005. I am also interested in version 2012. The technical insider series is my first book. It covers a large amount of conte
Three Join strategies in the execution planThere are three join strategies for SQL Server: Hash join,merge join,nested Loop join.hash Join: Used to handle data that is not ordered/not indexed, it creates a hash table in memory of the data (the associated key) on both sides of the Join. For example, with the following query statement, the associated two tables are not indexed, and the execution plan is displ
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.