what is Goals for Tuning?
The objective of tuning a system is either to reduce the response time for end users of the system, or to reduce the resources used to process the same work.
[@more@]The objective of tuning a system is either to reduce the response time for end users of the system, or to reduce the resources used to process the same work. You can accomplish both of these objectives in several ways:
Reduce the Workload
This is what commonly constitutes SQL tuning: finding more efficient ways to process the same workload. It is possible to change the execution plan of the statement without altering the functionality to reduce the resource consumption.
Two examples of how resource usage can be reduced are:
- If a commonly executed query needs to access a small percentage of data in the table, then it can be executed more efficiently by using an index. By creating such an index, you reduce the amount of resources used.
- If a user is looking at the first twenty rows of the 10,000 rows returned in a specific sort order, and if the query (and sort order) can be satisfied by an index, then the user does not need to access and sort the 10,000 rows to see the first 20 rows.
Balance the Workload
Systems often tend to have peak usage in the daytime when real users are connected to the system, and low usage in the nighttime. If noncritical reports and batch jobs can be scheduled to run in the nighttime and their concurrency during day time reduced, then it frees up resources for the more critical programs in the day.
Parallelize the Workload
Queries that access large amounts of data (typical data warehouse queries) often can be parallelized. This is extremely useful for reducing the response time in low concurrency data warehouse. However, for OLTP environments, which tend to be high concurrency, this can adversely impact other users by increasing the overall resource usage of the program.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/19602/viewspace-1005925/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【每週一讀】What is prompt-tuning?
- Goals of VictoryGo
- SMART goals - SMART objectivesGoObject
- GoldenGate - What is supported and what is not ....Go
- What is it?
- What is WebpackWeb
- What is Babel?Babel
- What is MySQL?MySql
- What is Gravity
- what is life?
- What is wrong?
- Maven - Maven-dependency-plugin (goals "copy-dependencies","unpack") is not supportedMavenPluginGo
- What is an SQL relation?SQL
- What time is it on Mars?
- what the fuck java is?Java
- What is tradebit?
- What is functor in Haskell ?Haskell
- What is Scalability?
- what is ORACLE ACEOracle
- what is sql?(轉)SQL
- In Oracle,What Is a Service?Oracle
- What happened ?APP
- What is INITRANS and MAXTRANS
- what is IS-RETAIL?AI
- What's the webmethodWeb
- oracle tuningOracle
- Tuning Scripts
- sql tuningSQL
- sql tuning set/sql tuning advisor(待完善)SQL
- [Information Security] What is WEPORM
- What is dbo in SQL Server?SQLServer
- WHAT IS PPM Encoder ?
- What Is Apache HadoopApacheHadoop
- What Is a Server Parameter File?Server
- What else is there in Python?Python
- What is strategy development process?dev
- WHAT IS C# (轉)C#
- What is rate limiting?MIT