DBMS
DBMS
QUERY OPTIMIZERS
AND DATA
MANAGERS
COMPONENTS:
COMPONENTS: COMPONENTS:
• INTEGRITY MANAGER
• DDL INTERPRETER • DATA DICTIONARY
• AUTHORIZATION
• DML COMPILER • DATA FILES
MANAGER
• EMBEDDED DML PRE • INDICES
• FILE MANAGER
COMPILER
• TRANSACTION MANAGER
• QUERY OPTIMIZER
• BUFFER MANAGER
WHAT IS QUERY
OPTIMIZER ?
Query Optimizer in a Database
Management System (DBMS) is a crucial
component that determines the most
efficient way to execute a given database
query. When a user submits a query
(typically written in SQL), the query
optimizer analyzes various possible
execution strategies and chooses the one
that minimizes the cost in terms of time,
computational resources, and memory
usage..
FUNCTIONS OF QUERY
OPTIMIZER ?
Generating Multiple Execution Plans:
•The optimizer generates several possible
query execution plans, which are different
ways to retrieve the requested data.
Cost Estimation:
•Each execution plan is assigned a cost
based on factors like disk I/O (how much
data is read from storage), CPU usage,
memory usage, and network overhead.
Choosing the Best Plan:
•After estimating the cost of different query
plans, the query optimizer selects the plan
that minimizes the overall cost and
delivers the best performance.
HOW QUERY
OPTIMIZER WORKS?
QUERY PARSING
PLAN
GENERATION:
COST ESTIMATION
WHAT IS DATA
MANAGERS ?
In a Database Management System
(DBMS), a Data Manager (also known as
the Storage Manager) is responsible for
the efficient handling, retrieval, storage,
and management of data stored in the
database. It acts as the interface between
the physical database (data stored on
disk) and the higher-level components
of the DBMS, such as the query processor
or transaction manager.
ROLE OF DATA
MANAGERS ?
DATA STORAGE AND
RETRIEVAL: