SlideShare a Scribd company logo
1 of 15
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.

Tuning database performance
Tuning database performanceTuning database performance
Tuning database performance
Binay Acharya
 
Mi0034 database management systems
Mi0034  database management systemsMi0034  database management systems
Mi0034 database management systems
smumbahelp
 
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
EMC
 
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
 

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

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 

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