SlideShare a Scribd company logo
Pradip Raj Poudel (149-44), Kashiram
Pokharel(149-40)
“QUERY OPTIMIZATION
IN
DISTRIBUTEDDATABASE”
ME_CE III
NCIT, Lalitpur
A Review Article
By: Yasmeen Rm
Umar
Amit R Welekar
01/20/16
1
Outline:
 Abstract
 Introduction
 Query Optimization
 Optimization
Challenges
 Steps In Query
Processing
 S. Chaudhuri
Review
 Fan/Xifeng Review
 Chen/YU Review
 Kossman/Stocker
Review
 XUE Lin Review
 Conclusion
First Part Second Part
01/20/16
2
Abstract:
 Data is Growing over Distributed
Environment, Day By Day so Better
Distributed DBMS is Required.
 Multiple sites with parts of Data’s ,so Query
optimization is a challenges in Distributed
Database.
 Query optimization finds the best execution
plan from various options.
01/20/16
3
Introduction
 All Data Placed on
Central Computer
location so Easy to
Access/Extract.
 DB Query Easily
Transformed Into
RA operations.
 No overhead
 Data on multiple Sites
but centrally
Administrated.
 Provides
Flexibility/customization
.
 Ex. Location A can
Access data From
location B.
 Location Transparency
 Data Distributed, so
complex for Query
Transformation
Centralized Database Distributed Database
Database: Collection of
Files/Tables.
DBMS: Manage Database( CD or
DD)
01/20/16
4
Query
Optimization:
 Data Distributed Over Different Sites in
Distributed Database.
 If Query is Given, the response of that query
may Requires data From several Sites.
(DBMS fxn)
 Now the Major task is “ Process A query with
location transparency and Find out Best
Sensible Execution Plan”.
Objective:
01/20/16
5
Optimization
Challenges:
 1st
Break Query in Distributed Database
Environment.
 2nd
Determine which Sites has less
Data/records.
As less Data ,less Communication and Vice-
versa.
 Then Transfer those Data to Another Site.
More Sites= More Complex/Complication to
Process query.
 Compute Cost using Effective Cost Module.
As Data Distributed in Different Sites, More Challenges To Compute Efficient Query
Plan.
01/20/16
6
Basic Steps In Query Processing
Plan
a). Query Decomposition:
Decompose into SimplerForm of RA.
OPTIMIZERCOMPONENTS:
a) . Query Engine
b) . Query Optimizer
b). Data localization:
Data Referenced to only one
location.(One Site)
c). Global Optimization:
Optimization of RA/Decision Making
Ex. Which site is efficient to move
data and where query will Execute.
d). Local Optimization:
When the Query Fragmented To
sites ,treat locally and Execute
Query.
01/20/16
7
Optimizer Components:
Query Engine:
a). Produce O/Pby taking I/P
and Performs Operations By
taking Physical
operators( Join,Sort,Loop).
b). Construct Parse tree which
shows flow of Data fromOne
Operation to AnotherOperation.
Query Optimizer:
a). Receives Parse Tree As I/P
From QE and Produce Best
Possible Execution Plan ,Based
On least Resource Consumption.
b). Not a Easy taskto generate
Efficient Query Plan
01/20/16
8
Review
 Chaudhari Discussed on Basic Query
Optimization/Search Space/Cost Estimation
Technique.
 Operator Tree having least resources
consumption would be best.
 For Selecting Best plan, Statistical Info and
Execution cost Analyzed.
 Statistical : No of Rows,memory,Joins,Pages
etc.
1. Surajit Chaudhari : Review
01/20/16
9
Review:
 DD: Multiple Computer With Network.
 GDBMS,LDBMS/CM are Elements of DB.
Distributed Database Manager is global and
local.
 Proposed algorithm to improve semi-
connected sub query optimization to reduce
Network Cost.
But less efficient For Select Query.
2.Fan/XiFeng : Review
01/20/16
10
Review:
 More Focused on Communication Cost.
 Focused on Detail Study of Join/Semi join
Query.
 The combination of Join & Semi join Results in
Large Reduction of Communication Cost.
 Determines effect of join operation and find out
best combination of join which reduces
communication cost.
3.Chen/Yu: Review
01/20/16
11
Review:
 Proposed Algorithm Based on IDP( iterative
Dynamic Programming)
 Good But difficult to apply incase of Complex
queries.
 Thus ,Uses Greedy Algorithm + DP concept
used For best Query plans.
 Memory Requirements not Considered.
4.Kossmann/Stocker:Review
01/20/16
12
Review:
 User Module: Analyze User Query
 Syntax Analysis Module: done on Global Query
 Query tree Conversion Module
 Optimization Module: receives query tree which is optimized
and creates physical trees and calculates cost of each
physical operator tree.
 Order Processing Module: Distribute Query to Server &
Returns result to user.
 Local Data Dictionary used but table /cpu time/memory
increases.
5.XUE Lin: Review
01/20/16
13
Conclusion:
 Dynamic Programming/Greedy: Large Space
Complexity.
 Thus New Approach Used Based On Ant Colony
Algorithm, Where Each Relation is Considered as
Domain Value.
 Better Execution Time has Been Achieved.
01/20/16
14
Any Questions????
Thanks
01/20/16
15
Email: raj.pradip7@gmail.com
ME_CE_2015
NCIT,balkumari-Lalitpur

More Related Content

Similar to Query optimization and challenges in DDBMS with Review Algorithms.

Web Access Log Management
Web Access Log ManagementWeb Access Log Management
Web Access Log Management
Jay Patel
 
Issues in Query Processing and Optimization
Issues in Query Processing and OptimizationIssues in Query Processing and Optimization
Issues in Query Processing and Optimization
Editor IJMTER
 
Lec 7 query processing
Lec 7 query processingLec 7 query processing
Lec 7 query processing
Md. Mashiur Rahman
 
Database performance tuning and query optimization
Database performance tuning and query optimizationDatabase performance tuning and query optimization
Database performance tuning and query optimization
Usman Tariq
 
Query processing
Query processingQuery processing
Query processing
University of Potsdam
 
NOVEL FUNCTIONAL DEPENDENCY APPROACH FOR STORAGE SPACE OPTIMISATION IN GREEN ...
NOVEL FUNCTIONAL DEPENDENCY APPROACH FOR STORAGE SPACE OPTIMISATION IN GREEN ...NOVEL FUNCTIONAL DEPENDENCY APPROACH FOR STORAGE SPACE OPTIMISATION IN GREEN ...
NOVEL FUNCTIONAL DEPENDENCY APPROACH FOR STORAGE SPACE OPTIMISATION IN GREEN ...
Nurul Emran
 
Cost-Efficient Task Scheduling with Ant Colony Algorithm for Executing Large ...
Cost-Efficient Task Scheduling with Ant Colony Algorithm for Executing Large ...Cost-Efficient Task Scheduling with Ant Colony Algorithm for Executing Large ...
Cost-Efficient Task Scheduling with Ant Colony Algorithm for Executing Large ...
Editor IJCATR
 
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENT
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENTQUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENT
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENT
csandit
 
Alaska Dispatch Study Productivity Improvement Alternatives
Alaska Dispatch Study Productivity Improvement AlternativesAlaska Dispatch Study Productivity Improvement Alternatives
Alaska Dispatch Study Productivity Improvement Alternatives
Jeff Granger
 
SharePoint Global Deployment with Joel Oleson
SharePoint Global Deployment with Joel OlesonSharePoint Global Deployment with Joel Oleson
SharePoint Global Deployment with Joel Oleson
Joel Oleson
 
Tuning database performance
Tuning database performanceTuning database performance
Tuning database performanceBinay Acharya
 
Mi0034 database management systems
Mi0034  database management systemsMi0034  database management systems
Mi0034 database management systemssmumbahelp
 
dd presentation.pdf
dd presentation.pdfdd presentation.pdf
dd presentation.pdf
AnSHiKa187943
 
Orca: A Modular Query Optimizer Architecture for Big Data
Orca: A Modular Query Optimizer Architecture for Big DataOrca: A Modular Query Optimizer Architecture for Big Data
Orca: A Modular Query Optimizer Architecture for Big DataEMC
 
2004-11-13 Supersite Relational Database Project: (Data Portal?)
2004-11-13 Supersite Relational Database Project: (Data Portal?)2004-11-13 Supersite Relational Database Project: (Data Portal?)
2004-11-13 Supersite Relational Database Project: (Data Portal?)Rudolf Husar
 
Srds Pres011120
Srds Pres011120Srds Pres011120
Srds Pres011120
Rudolf Husar
 
Energy-Efficient Task Scheduling in Cloud Environment
Energy-Efficient Task Scheduling in Cloud EnvironmentEnergy-Efficient Task Scheduling in Cloud Environment
Energy-Efficient Task Scheduling in Cloud Environment
IRJET Journal
 
Query processing
Query processingQuery processing
Query processing
Dr. C.V. Suresh Babu
 
Query optimization in oodbms identifying subquery for query management
Query optimization in oodbms identifying subquery for query managementQuery optimization in oodbms identifying subquery for query management
Query optimization in oodbms identifying subquery for query management
ijdms
 

Similar to Query optimization and challenges in DDBMS with Review Algorithms. (20)

Web Access Log Management
Web Access Log ManagementWeb Access Log Management
Web Access Log Management
 
Issues in Query Processing and Optimization
Issues in Query Processing and OptimizationIssues in Query Processing and Optimization
Issues in Query Processing and Optimization
 
Lec 7 query processing
Lec 7 query processingLec 7 query processing
Lec 7 query processing
 
Database performance tuning and query optimization
Database performance tuning and query optimizationDatabase performance tuning and query optimization
Database performance tuning and query optimization
 
Query processing
Query processingQuery processing
Query processing
 
NOVEL FUNCTIONAL DEPENDENCY APPROACH FOR STORAGE SPACE OPTIMISATION IN GREEN ...
NOVEL FUNCTIONAL DEPENDENCY APPROACH FOR STORAGE SPACE OPTIMISATION IN GREEN ...NOVEL FUNCTIONAL DEPENDENCY APPROACH FOR STORAGE SPACE OPTIMISATION IN GREEN ...
NOVEL FUNCTIONAL DEPENDENCY APPROACH FOR STORAGE SPACE OPTIMISATION IN GREEN ...
 
Cost-Efficient Task Scheduling with Ant Colony Algorithm for Executing Large ...
Cost-Efficient Task Scheduling with Ant Colony Algorithm for Executing Large ...Cost-Efficient Task Scheduling with Ant Colony Algorithm for Executing Large ...
Cost-Efficient Task Scheduling with Ant Colony Algorithm for Executing Large ...
 
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENT
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENTQUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENT
QUERY OPTIMIZATION IN OODBMS: IDENTIFYING SUBQUERY FOR COMPLEX QUERY MANAGEMENT
 
Alaska Dispatch Study Productivity Improvement Alternatives
Alaska Dispatch Study Productivity Improvement AlternativesAlaska Dispatch Study Productivity Improvement Alternatives
Alaska Dispatch Study Productivity Improvement Alternatives
 
SharePoint Global Deployment with Joel Oleson
SharePoint Global Deployment with Joel OlesonSharePoint Global Deployment with Joel Oleson
SharePoint Global Deployment with Joel Oleson
 
Tuning database performance
Tuning database performanceTuning database performance
Tuning database performance
 
Mi0034 database management systems
Mi0034  database management systemsMi0034  database management systems
Mi0034 database management systems
 
dd presentation.pdf
dd presentation.pdfdd presentation.pdf
dd presentation.pdf
 
Orca: A Modular Query Optimizer Architecture for Big Data
Orca: A Modular Query Optimizer Architecture for Big DataOrca: A Modular Query Optimizer Architecture for Big Data
Orca: A Modular Query Optimizer Architecture for Big Data
 
Dbms 3 sem
Dbms 3 semDbms 3 sem
Dbms 3 sem
 
2004-11-13 Supersite Relational Database Project: (Data Portal?)
2004-11-13 Supersite Relational Database Project: (Data Portal?)2004-11-13 Supersite Relational Database Project: (Data Portal?)
2004-11-13 Supersite Relational Database Project: (Data Portal?)
 
Srds Pres011120
Srds Pres011120Srds Pres011120
Srds Pres011120
 
Energy-Efficient Task Scheduling in Cloud Environment
Energy-Efficient Task Scheduling in Cloud EnvironmentEnergy-Efficient Task Scheduling in Cloud Environment
Energy-Efficient Task Scheduling in Cloud Environment
 
Query processing
Query processingQuery processing
Query processing
 
Query optimization in oodbms identifying subquery for query management
Query optimization in oodbms identifying subquery for query managementQuery optimization in oodbms identifying subquery for query management
Query optimization in oodbms identifying subquery for query management
 

Recently uploaded

J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 

Recently uploaded (20)

J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 

Query optimization and challenges in DDBMS with Review Algorithms.

  • 1. Pradip Raj Poudel (149-44), Kashiram Pokharel(149-40) “QUERY OPTIMIZATION IN DISTRIBUTEDDATABASE” ME_CE III NCIT, Lalitpur A Review Article By: Yasmeen Rm Umar Amit R Welekar 01/20/16 1
  • 2. Outline:  Abstract  Introduction  Query Optimization  Optimization Challenges  Steps In Query Processing  S. Chaudhuri Review  Fan/Xifeng Review  Chen/YU Review  Kossman/Stocker Review  XUE Lin Review  Conclusion First Part Second Part 01/20/16 2
  • 3. Abstract:  Data is Growing over Distributed Environment, Day By Day so Better Distributed DBMS is Required.  Multiple sites with parts of Data’s ,so Query optimization is a challenges in Distributed Database.  Query optimization finds the best execution plan from various options. 01/20/16 3
  • 4. Introduction  All Data Placed on Central Computer location so Easy to Access/Extract.  DB Query Easily Transformed Into RA operations.  No overhead  Data on multiple Sites but centrally Administrated.  Provides Flexibility/customization .  Ex. Location A can Access data From location B.  Location Transparency  Data Distributed, so complex for Query Transformation Centralized Database Distributed Database Database: Collection of Files/Tables. DBMS: Manage Database( CD or DD) 01/20/16 4
  • 5. Query Optimization:  Data Distributed Over Different Sites in Distributed Database.  If Query is Given, the response of that query may Requires data From several Sites. (DBMS fxn)  Now the Major task is “ Process A query with location transparency and Find out Best Sensible Execution Plan”. Objective: 01/20/16 5
  • 6. Optimization Challenges:  1st Break Query in Distributed Database Environment.  2nd Determine which Sites has less Data/records. As less Data ,less Communication and Vice- versa.  Then Transfer those Data to Another Site. More Sites= More Complex/Complication to Process query.  Compute Cost using Effective Cost Module. As Data Distributed in Different Sites, More Challenges To Compute Efficient Query Plan. 01/20/16 6
  • 7. Basic Steps In Query Processing Plan a). Query Decomposition: Decompose into SimplerForm of RA. OPTIMIZERCOMPONENTS: a) . Query Engine b) . Query Optimizer b). Data localization: Data Referenced to only one location.(One Site) c). Global Optimization: Optimization of RA/Decision Making Ex. Which site is efficient to move data and where query will Execute. d). Local Optimization: When the Query Fragmented To sites ,treat locally and Execute Query. 01/20/16 7
  • 8. Optimizer Components: Query Engine: a). Produce O/Pby taking I/P and Performs Operations By taking Physical operators( Join,Sort,Loop). b). Construct Parse tree which shows flow of Data fromOne Operation to AnotherOperation. Query Optimizer: a). Receives Parse Tree As I/P From QE and Produce Best Possible Execution Plan ,Based On least Resource Consumption. b). Not a Easy taskto generate Efficient Query Plan 01/20/16 8
  • 9. Review  Chaudhari Discussed on Basic Query Optimization/Search Space/Cost Estimation Technique.  Operator Tree having least resources consumption would be best.  For Selecting Best plan, Statistical Info and Execution cost Analyzed.  Statistical : No of Rows,memory,Joins,Pages etc. 1. Surajit Chaudhari : Review 01/20/16 9
  • 10. Review:  DD: Multiple Computer With Network.  GDBMS,LDBMS/CM are Elements of DB. Distributed Database Manager is global and local.  Proposed algorithm to improve semi- connected sub query optimization to reduce Network Cost. But less efficient For Select Query. 2.Fan/XiFeng : Review 01/20/16 10
  • 11. Review:  More Focused on Communication Cost.  Focused on Detail Study of Join/Semi join Query.  The combination of Join & Semi join Results in Large Reduction of Communication Cost.  Determines effect of join operation and find out best combination of join which reduces communication cost. 3.Chen/Yu: Review 01/20/16 11
  • 12. Review:  Proposed Algorithm Based on IDP( iterative Dynamic Programming)  Good But difficult to apply incase of Complex queries.  Thus ,Uses Greedy Algorithm + DP concept used For best Query plans.  Memory Requirements not Considered. 4.Kossmann/Stocker:Review 01/20/16 12
  • 13. Review:  User Module: Analyze User Query  Syntax Analysis Module: done on Global Query  Query tree Conversion Module  Optimization Module: receives query tree which is optimized and creates physical trees and calculates cost of each physical operator tree.  Order Processing Module: Distribute Query to Server & Returns result to user.  Local Data Dictionary used but table /cpu time/memory increases. 5.XUE Lin: Review 01/20/16 13
  • 14. Conclusion:  Dynamic Programming/Greedy: Large Space Complexity.  Thus New Approach Used Based On Ant Colony Algorithm, Where Each Relation is Considered as Domain Value.  Better Execution Time has Been Achieved. 01/20/16 14