SlideShare a Scribd company logo
Database Systems: Design,
Implementation, and
Management
Eighth Edition
Chapter 11
Database Performance Tuning and
Query Optimization
Database Systems, 8th Edition 2
Objectives
• In this chapter, you will learn:
– Basic database performance-tuning concepts
– How a DBMS processes SQL queries
– About the importance of indexes in query processing
– About the types of decisions the query optimizer has
to make
– Some common practices used to write efficient SQL
code
– How to formulate queries and tune the DBMS for
optimal performance
– Performance tuning in SQL Server 2005
Database Systems, 8th Edition 3
11.1 Database Performance-Tuning Concepts
• Goal of database performance is to execute
queries as fast as possible
• Database performance tuning
– Set of activities and procedures designed to
reduce response time of database system
• All factors must operate at optimum level with
minimal bottlenecks
• Good database performance starts with
good database design
Database Systems, 8th Edition 4
Database Systems, 8th Edition 5
Performance Tuning: Client and Server
• Client side
– Generate SQL query that returns correct answer
in least amount of time
• Using minimum amount of resources at server
– SQL performance tuning
• Server side
– DBMS environment configured to respond to
clients’ requests as fast as possible
• Optimum use of existing resources
– DBMS performance tuning
Database Systems, 8th Edition 6
DBMS Architecture
• All data in database are stored in data files
• Data files
– Automatically expand in predefined increments
known as extends
– Grouped in file groups or table spaces
• Table space or file group:
– Logical grouping of several data files that store
data with similar characteristics
Database Systems, 8th Edition 7
Basic DBMS architecture
Database Systems, 8th Edition 8
DBMS Architecture (continued)
• Data cache or buffer cache: shared, reserved
memory area
– Stores most recently accessed data blocks in RAM
• SQL cache or procedure cache: stores most
recently executed SQL statements
– Also PL/SQL procedures, including triggers and
functions
• DBMS retrieves data from permanent storage and
places it in RAM
Database Systems, 8th Edition 9
DBMS Architecture (continued)
• Input/output request: low-level data access
operation to/from computer devices, such as
memory, hard disks, videos, and printers
• Data cache is faster than data in data files
– DBMS does not wait for hard disk to retrieve data
• Majority of performance-tuning activities focus on
minimizing I/O operations
• Typical DBMS processes:
– Listener, User, Scheduler, Lock manager, Optimizer
Database Systems, 8th Edition 10
Database Statistics
• Measurements about database objects and available
resources
– Tables, Indexes, Number of processors used,
Processor speed, Temporary space available
• Make critical decisions about improving query
processing efficiency
• Can be gathered manually by DBA or automatically by
DBMS
– UPDATE STATISTICS table_name [index_name]
– Auto-Update and Auto-Create Statistics option
• 資料庫屬性-> 自動更新統計資料
• 資料庫屬性-> 自動建立統計資料
Database Systems, 8th Edition 11
Database Systems, 8th Edition 12
Ch08: dbcc show_statistics (customer,
PK__CUSTOMER__24927208 )
Ch08: dbcc show_statistics (customer, CUS_UI1)
補充SQL Server 2005
Database Systems, 8th Edition 13
11.2 Query Processing
• DBMS processes queries in three phases
– Parsing
• DBMS parses the query and chooses the most
efficient access/execution plan
– Execution
• DBMS executes the query using chosen
execution plan
– Fetching
• DBMS fetches the data and sends the result back
to the client
Database Systems, 8th Edition 14
Query Processing
Database Systems, 8th Edition 15
SQL Parsing Phase
• Break down query into smaller units
• Transform original SQL query into slightly
different version of original SQL code
– Fully equivalent
• Optimized query results are always the same as
original query
– More efficient
• Optimized query will almost always execute faster
than original query
Database Systems, 8th Edition 16
SQL Parsing Phase (continued)
• Query optimizer analyzes SQL query and finds most
efficient way to access data
– Validated for syntax compliance
– Validated against data dictionary
• Tables, column names are correct
• User has proper access rights
– Analyzed and decomposed into more atomic components
– Optimized through transforming into a fully equivalent but
more efficient SQL query
– Prepared for execution by determining the execution or
access plan
Database Systems, 8th Edition 17
SQL Parsing Phase (continued)
• Access plans are DBMS-specific
– Translate client’s SQL query into series of
complex I/O operations
– Required to read the data from the physical data
files and generate result set
• DBMS checks if access plan already exists for
query in SQL cache
• DBMS reuses the access plan to save time
• If not, optimizer evaluates various plans
– Chosen plan placed in SQL cache
Database Systems, 8th Edition 18
Database Systems, 8th Edition 19
SQL Execution and Fetching Phase
• All I/O operations indicated in access plan are
executed
– Locks acquired
– Data retrieved and placed in data cache
– Transaction management commands processed
• Rows of resulting query result set are returned to
client
• DBMS may use temporary table space to store
temporary data
– The server may send only the first 100 rows of 9000 rows
Database Systems, 8th Edition 20
Query Processing Bottlenecks
• Delay introduced in the processing of an I/O
operation that slows the system
– CPU
– RAM
– Hard disk
– Network
– Application code
Database Systems, 8th Edition 21
SQL 敘述
輸入完成
後先不要
執行查
詢, 請按
下工具列
的顯示估
計執行計
劃鈕
:
Database Systems, 8th Edition 22
11.3 Indexes and Query Optimization
• Indexes
– Crucial in speeding up data access
– Facilitate searching, sorting, and using
aggregate functions as well as join operations
– Ordered set of values that contains index key
and pointers
• More efficient to use index to access table than
to scan all rows in table sequentially
Database Systems, 8th Edition 23
Indexes and Query Optimization
• Data sparsity: number of different values a column
could possibly have
• Indexes implemented using: ( 課本p. 453)
– Hash indexes
– B-tree indexes: most common index type. Used in tables in
which column values repeat a small number of times. The
leaves contain pointers to records It is self-balanced.
– Bitmap indexes: 0/1
• DBMSs determine best type of index to use
– Ex: CUST_LNAME with B-tree and REGION_CODE with
Bitmap indexes
Database Systems, 8th Edition 24B-tree and bitmap index
representation
25
Index Representation for the
CUSTOMER table
SELECT CUS_NAME
FROM CUSTOMER
WHERE CUS_STATE=‘FL’
Requires only 5 accesses to STATE_INDEX,
5 accesses to CUSTOMER
Database Systems, 8th Edition 26
11.4 Optimizer Choices
• Rule-based optimizer
– Preset rules and points
– Rules assign a fixed cost to each operation
• Cost-based optimizer
– Algorithms based on statistics about objects
being accessed
– Adds up processing cost, I/O costs, resource
costs to derive total cost
Example
Database Systems, 8th Edition 27
SELECT P_CODE, P_DESCRIPT, P_PRICE, V_NAME,
V_STATE
FROM PRODUCT P, VENDOR V
WHERE P.V_CODE=V.V_CODE
AND V.V_STATE=‘FL’;
• With the following database statistics:
– The PRODUCT table has 7000 rows
– The VENDOR table has 300 rows
– 10 vendors come from Florida
– 1000 products come from vendors in Florida
Database Systems, 8th Edition 28
Example
Database Systems, 8th Edition 29
• Assume the PRODUCT table has the index
PQOH_NDX in the P_QOH attribute
SELECT MIN(P_QOH) FROM PRODUCT
could be resolved by reading only the first entry in
the PQOH_NDX index
Database Systems, 8th Edition 30
Using Hints to Affect Optimizer Choices
• Optimizer might not choose best plan
• Makes decisions based on existing statistics
– Statistics may be old
– Might choose less efficient decisions
• Optimizer hints: special instructions for the
optimizer embedded in the SQL command text
Database Systems, 8th Edition 31
Oracle 版本
Database Systems, 8th Edition 32
MS SQL Server 的語法請參考:
http://msdn.microsoft.com/en-us/library/ms187713.aspx
SQL Server Query Hints Example
select o.customerid,companyname
from orders as o inner MERGE join customers as c
on o.customerid = c.customerid
select o.customerid,companyname
from orders as o inner HASH join customers as c
on o.customerid = c.customerid
select o.customerid,companyname
from orders as o inner LOOP join customers as c
on o.customerid = c.customerid
select city, count(*)
from customers
group by city
OPTION (HASH GROUP)
Database Systems: Design, Implementation, and Management
Eighth EditionObjectives11.1 Database Performance-Tuning
ConceptsPowerPoint PresentationPerformance Tuning: Client
and ServerDBMS ArchitectureSlide 7DBMS Architecture
(continued)Slide 9Database StatisticsSlide 11Slide 1211.2
Query ProcessingSlide 14SQL Parsing PhaseSQL Parsing Phase
(continued)Slide 17Slide 18SQL Execution and Fetching
PhaseQuery Processing BottlenecksSlide 2111.3 Indexes and
Query OptimizationIndexes and Query OptimizationSlide
24Slide 2511.4 Optimizer ChoicesExampleSlide 28Slide
29Using Hints to Affect Optimizer ChoicesSlide 31Slide 32
Database Systems Design, Implementation, and Management

More Related Content

PPT
Database performance tuning and query optimization
PPTX
Chapter 11new
PPTX
Presentación Oracle Database Migración consideraciones 10g/11g/12c
PPT
Performance Tuning And Optimization Microsoft SQL Database
PPT
Business intelligence and data warehouses
PPTX
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL Server
PPT
Dbms 3 sem
PPT
Week 3 database design
Database performance tuning and query optimization
Chapter 11new
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Performance Tuning And Optimization Microsoft SQL Database
Business intelligence and data warehouses
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL Server
Dbms 3 sem
Week 3 database design

Similar to Database Systems Design, Implementation, and Management (20)

PPT
Database system Design Implementation and Management
PPT
Database design
PPTX
Optimising Queries - Series 1 Query Optimiser Architecture
PPT
Database_Design.ppt
PDF
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
PDF
How should I monitor my idaa
PPT
Java Developers, make the database work for you (NLJUG JFall 2010)
PPTX
Optimizing Application Performance - 2022.pptx
PDF
Breaking data
PPTX
Oracle Query Optimizer - An Introduction
PPTX
Best storage engine for MySQL
PPTX
MySQL: Know more about open Source Database
PDF
071410 sun a_1515_feldman_stephen
PDF
Dynamics ax performance tuning
PPTX
05_DP_300T00A_Optimize.pptx
PPTX
Oracle DBA
PPTX
Unit 2 oracle9i
PDF
Best Practices – Extreme Performance with Data Warehousing on Oracle Databa...
PPT
Database administration and security
PPTX
Oracle administration classes in mumbai
Database system Design Implementation and Management
Database design
Optimising Queries - Series 1 Query Optimiser Architecture
Database_Design.ppt
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
How should I monitor my idaa
Java Developers, make the database work for you (NLJUG JFall 2010)
Optimizing Application Performance - 2022.pptx
Breaking data
Oracle Query Optimizer - An Introduction
Best storage engine for MySQL
MySQL: Know more about open Source Database
071410 sun a_1515_feldman_stephen
Dynamics ax performance tuning
05_DP_300T00A_Optimize.pptx
Oracle DBA
Unit 2 oracle9i
Best Practices – Extreme Performance with Data Warehousing on Oracle Databa...
Database administration and security
Oracle administration classes in mumbai
Ad

More from OllieShoresna (20)

DOCX
this assignment is about Mesopotamia and Egypt. Some of these cu.docx
DOCX
This assignment has two goals 1) have students increase their under.docx
DOCX
This assignment has two parts 1 paragraph per questionIn wh.docx
DOCX
This assignment is a minimum of 100 word all parts of each querstion.docx
DOCX
This assignment has three elements a traditional combination format.docx
DOCX
This assignment has four partsWhat changes in business software p.docx
DOCX
This assignment consists of two partsthe core evaluation, a.docx
DOCX
This assignment asks you to analyze a significant textual elemen.docx
DOCX
This assignment allows you to learn more about one key person in Jew.docx
DOCX
This assignment allows you to explore the effects of social influe.docx
DOCX
This assignment addresses pretrial procedures that occur prior to th.docx
DOCX
This assignment allows you to learn more about one key person in J.docx
DOCX
This assignment allows you to explore the effects of social infl.docx
DOCX
this about communication please i eant you answer this question.docx
DOCX
Think of a time when a company did not process an order or perform a.docx
DOCX
Think_Vision W5- Importance of VaccinationImportance of Vaccinatio.docx
DOCX
Thinks for both only 50 words as much for each one1-xxxxd, unf.docx
DOCX
Think of a specific change you would like to bring to your organizat.docx
DOCX
Think of a possible change initiative in your selected organization..docx
DOCX
Thinking About Research PaperConsider the research question and .docx
this assignment is about Mesopotamia and Egypt. Some of these cu.docx
This assignment has two goals 1) have students increase their under.docx
This assignment has two parts 1 paragraph per questionIn wh.docx
This assignment is a minimum of 100 word all parts of each querstion.docx
This assignment has three elements a traditional combination format.docx
This assignment has four partsWhat changes in business software p.docx
This assignment consists of two partsthe core evaluation, a.docx
This assignment asks you to analyze a significant textual elemen.docx
This assignment allows you to learn more about one key person in Jew.docx
This assignment allows you to explore the effects of social influe.docx
This assignment addresses pretrial procedures that occur prior to th.docx
This assignment allows you to learn more about one key person in J.docx
This assignment allows you to explore the effects of social infl.docx
this about communication please i eant you answer this question.docx
Think of a time when a company did not process an order or perform a.docx
Think_Vision W5- Importance of VaccinationImportance of Vaccinatio.docx
Thinks for both only 50 words as much for each one1-xxxxd, unf.docx
Think of a specific change you would like to bring to your organizat.docx
Think of a possible change initiative in your selected organization..docx
Thinking About Research PaperConsider the research question and .docx
Ad

Recently uploaded (20)

PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Trump Administration's workforce development strategy
PDF
Classroom Observation Tools for Teachers
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Complications of Minimal Access Surgery at WLH
Orientation - ARALprogram of Deped to the Parents.pptx
Microbial disease of the cardiovascular and lymphatic systems
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Final Presentation General Medicine 03-08-2024.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Computing-Curriculum for Schools in Ghana
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Trump Administration's workforce development strategy
Classroom Observation Tools for Teachers
Chinmaya Tiranga quiz Grand Finale.pdf
RMMM.pdf make it easy to upload and study
Abdominal Access Techniques with Prof. Dr. R K Mishra
FourierSeries-QuestionsWithAnswers(Part-A).pdf
01-Introduction-to-Information-Management.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Complications of Minimal Access Surgery at WLH

Database Systems Design, Implementation, and Management

  • 1. Database Systems: Design, Implementation, and Management Eighth Edition Chapter 11 Database Performance Tuning and Query Optimization Database Systems, 8th Edition 2 Objectives • In this chapter, you will learn: – Basic database performance-tuning concepts – How a DBMS processes SQL queries – About the importance of indexes in query processing – About the types of decisions the query optimizer has to make – Some common practices used to write efficient SQL code – How to formulate queries and tune the DBMS for optimal performance – Performance tuning in SQL Server 2005
  • 2. Database Systems, 8th Edition 3 11.1 Database Performance-Tuning Concepts • Goal of database performance is to execute queries as fast as possible • Database performance tuning – Set of activities and procedures designed to reduce response time of database system • All factors must operate at optimum level with minimal bottlenecks • Good database performance starts with good database design Database Systems, 8th Edition 4 Database Systems, 8th Edition 5 Performance Tuning: Client and Server • Client side – Generate SQL query that returns correct answer in least amount of time • Using minimum amount of resources at server
  • 3. – SQL performance tuning • Server side – DBMS environment configured to respond to clients’ requests as fast as possible • Optimum use of existing resources – DBMS performance tuning Database Systems, 8th Edition 6 DBMS Architecture • All data in database are stored in data files • Data files – Automatically expand in predefined increments known as extends – Grouped in file groups or table spaces • Table space or file group: – Logical grouping of several data files that store data with similar characteristics Database Systems, 8th Edition 7 Basic DBMS architecture
  • 4. Database Systems, 8th Edition 8 DBMS Architecture (continued) • Data cache or buffer cache: shared, reserved memory area – Stores most recently accessed data blocks in RAM • SQL cache or procedure cache: stores most recently executed SQL statements – Also PL/SQL procedures, including triggers and functions • DBMS retrieves data from permanent storage and places it in RAM Database Systems, 8th Edition 9 DBMS Architecture (continued) • Input/output request: low-level data access operation to/from computer devices, such as memory, hard disks, videos, and printers • Data cache is faster than data in data files – DBMS does not wait for hard disk to retrieve data • Majority of performance-tuning activities focus on minimizing I/O operations • Typical DBMS processes: – Listener, User, Scheduler, Lock manager, Optimizer
  • 5. Database Systems, 8th Edition 10 Database Statistics • Measurements about database objects and available resources – Tables, Indexes, Number of processors used, Processor speed, Temporary space available • Make critical decisions about improving query processing efficiency • Can be gathered manually by DBA or automatically by DBMS – UPDATE STATISTICS table_name [index_name] – Auto-Update and Auto-Create Statistics option • 資料庫屬性-> 自動更新統計資料 • 資料庫屬性-> 自動建立統計資料 Database Systems, 8th Edition 11 Database Systems, 8th Edition 12 Ch08: dbcc show_statistics (customer, PK__CUSTOMER__24927208 ) Ch08: dbcc show_statistics (customer, CUS_UI1)
  • 6. 補充SQL Server 2005 Database Systems, 8th Edition 13 11.2 Query Processing • DBMS processes queries in three phases – Parsing • DBMS parses the query and chooses the most efficient access/execution plan – Execution • DBMS executes the query using chosen execution plan – Fetching • DBMS fetches the data and sends the result back to the client Database Systems, 8th Edition 14 Query Processing Database Systems, 8th Edition 15 SQL Parsing Phase • Break down query into smaller units
  • 7. • Transform original SQL query into slightly different version of original SQL code – Fully equivalent • Optimized query results are always the same as original query – More efficient • Optimized query will almost always execute faster than original query Database Systems, 8th Edition 16 SQL Parsing Phase (continued) • Query optimizer analyzes SQL query and finds most efficient way to access data – Validated for syntax compliance – Validated against data dictionary • Tables, column names are correct • User has proper access rights – Analyzed and decomposed into more atomic components – Optimized through transforming into a fully equivalent but more efficient SQL query – Prepared for execution by determining the execution or access plan
  • 8. Database Systems, 8th Edition 17 SQL Parsing Phase (continued) • Access plans are DBMS-specific – Translate client’s SQL query into series of complex I/O operations – Required to read the data from the physical data files and generate result set • DBMS checks if access plan already exists for query in SQL cache • DBMS reuses the access plan to save time • If not, optimizer evaluates various plans – Chosen plan placed in SQL cache Database Systems, 8th Edition 18 Database Systems, 8th Edition 19 SQL Execution and Fetching Phase • All I/O operations indicated in access plan are executed – Locks acquired – Data retrieved and placed in data cache – Transaction management commands processed
  • 9. • Rows of resulting query result set are returned to client • DBMS may use temporary table space to store temporary data – The server may send only the first 100 rows of 9000 rows Database Systems, 8th Edition 20 Query Processing Bottlenecks • Delay introduced in the processing of an I/O operation that slows the system – CPU – RAM – Hard disk – Network – Application code Database Systems, 8th Edition 21 SQL 敘述 輸入完成 後先不要 執行查 詢, 請按 下工具列 的顯示估
  • 10. 計執行計 劃鈕 : Database Systems, 8th Edition 22 11.3 Indexes and Query Optimization • Indexes – Crucial in speeding up data access – Facilitate searching, sorting, and using aggregate functions as well as join operations – Ordered set of values that contains index key and pointers • More efficient to use index to access table than to scan all rows in table sequentially Database Systems, 8th Edition 23 Indexes and Query Optimization • Data sparsity: number of different values a column could possibly have • Indexes implemented using: ( 課本p. 453) – Hash indexes – B-tree indexes: most common index type. Used in tables in
  • 11. which column values repeat a small number of times. The leaves contain pointers to records It is self-balanced. – Bitmap indexes: 0/1 • DBMSs determine best type of index to use – Ex: CUST_LNAME with B-tree and REGION_CODE with Bitmap indexes Database Systems, 8th Edition 24B-tree and bitmap index representation 25 Index Representation for the CUSTOMER table SELECT CUS_NAME FROM CUSTOMER WHERE CUS_STATE=‘FL’ Requires only 5 accesses to STATE_INDEX, 5 accesses to CUSTOMER Database Systems, 8th Edition 26 11.4 Optimizer Choices • Rule-based optimizer – Preset rules and points
  • 12. – Rules assign a fixed cost to each operation • Cost-based optimizer – Algorithms based on statistics about objects being accessed – Adds up processing cost, I/O costs, resource costs to derive total cost Example Database Systems, 8th Edition 27 SELECT P_CODE, P_DESCRIPT, P_PRICE, V_NAME, V_STATE FROM PRODUCT P, VENDOR V WHERE P.V_CODE=V.V_CODE AND V.V_STATE=‘FL’; • With the following database statistics: – The PRODUCT table has 7000 rows – The VENDOR table has 300 rows – 10 vendors come from Florida – 1000 products come from vendors in Florida Database Systems, 8th Edition 28 Example
  • 13. Database Systems, 8th Edition 29 • Assume the PRODUCT table has the index PQOH_NDX in the P_QOH attribute SELECT MIN(P_QOH) FROM PRODUCT could be resolved by reading only the first entry in the PQOH_NDX index Database Systems, 8th Edition 30 Using Hints to Affect Optimizer Choices • Optimizer might not choose best plan • Makes decisions based on existing statistics – Statistics may be old – Might choose less efficient decisions • Optimizer hints: special instructions for the optimizer embedded in the SQL command text Database Systems, 8th Edition 31 Oracle 版本 Database Systems, 8th Edition 32
  • 14. MS SQL Server 的語法請參考: http://msdn.microsoft.com/en-us/library/ms187713.aspx SQL Server Query Hints Example select o.customerid,companyname from orders as o inner MERGE join customers as c on o.customerid = c.customerid select o.customerid,companyname from orders as o inner HASH join customers as c on o.customerid = c.customerid select o.customerid,companyname from orders as o inner LOOP join customers as c on o.customerid = c.customerid select city, count(*) from customers group by city OPTION (HASH GROUP) Database Systems: Design, Implementation, and Management Eighth EditionObjectives11.1 Database Performance-Tuning ConceptsPowerPoint PresentationPerformance Tuning: Client and ServerDBMS ArchitectureSlide 7DBMS Architecture (continued)Slide 9Database StatisticsSlide 11Slide 1211.2 Query ProcessingSlide 14SQL Parsing PhaseSQL Parsing Phase (continued)Slide 17Slide 18SQL Execution and Fetching PhaseQuery Processing BottlenecksSlide 2111.3 Indexes and Query OptimizationIndexes and Query OptimizationSlide 24Slide 2511.4 Optimizer ChoicesExampleSlide 28Slide 29Using Hints to Affect Optimizer ChoicesSlide 31Slide 32