SlideShare a Scribd company logo
1 of 12
Query Processing Strategies in
Distributed Database
(Journal of Engineering, Computers & Applied Sciences (JEC&AS) ISSN No: 2319‐5606
Volume 2, No.7, July 2013)
Presented By:-
Shree Raj Khatiwada
Introduction
 Query: Instruction to DBMS to update or retrieve specific data to/from the
physically stored medium.
 Query Processor: There are three steps during the processing of that query:
1. Parsing and Translation: the human
readable form of the query is translated
into forms usable by the DBMS i.e.
Relational algebra expression, query
tree and query graph
SELECT Ename
FROM Employee
WHERE Salary > 5000;
This can be translated into following Relational Algebra
Expressions:
σ Salary > 5000 (π Ename (Employee))
OR
π Ename (σ Salary > 5000 (Employee)) Fig: Steps in Query Processing
Introduction contd…
2. Optimizing the Query:
 determines the efficient way to execute a query with different possible
query plans.
 Main aim is to minimize the cost function,
I/O Cost + CPU Cost + Communication Cost
 defines how an RDBMS can improve the performance of the query by re-
ordering the operations.
3. Evaluating the Query:
 The query-execution engine takes an (optimal) evaluation plan, executes
that plan, and returns the answers to the query.
Distributed Query Processing
 In a distributed database environment, data
is stored at different sites connected
through network.
 Distributed query processing contains four
stages, which are:
1. Query decomposition
 Calculus Query as an input
 Using global schema the calculus query is
decomposed to algebraic query
2. Data Localization
 Algebraic query as an input
 Uses fragment schema to generate localized
fragment query
 Fragment involvement is determined
Distributed Query Processing contd…
3. Global Optimization
 Fragment query is an input
 Uses fragment statistics to get optimized fragment query as an output.
 Finding best global schedule is done
4. Local Optimization
 Local schema is used to get optimized local query and then executed
 Output is returned to the site from where the query was generated.
Distributed Query Optimization
Distributed query optimization is defined as finding the efficient execution
strategy path in distributed network.
There are three components of distributed query optimization:
 Access Method: methods used to access data from distributed
environment
 Join Criteria: In distributed database join criteria is used to join the
different sites to get optimized result.
 Transmission Costs: Cost of transmitting the results from intermediate
steps needs to be considered .
There are many issues in distributed query optimization such as types of
optimizer, optimization granularity, network topologies and optimization
timing
Example
Site 1: COURSE, ENROLLMENT
Site 2: STUDENT
(Course: Physics and Student: Senior)
There are many ways to optimize this three-table join some of which are:
Option 1: Start with site 1, join C & E retrieving only physics course and move entire result set to
site 2 to be joined with S.
Option 2: Star with site 2, retrieve only senior student from S and move the entire result set to site
1 to be joined with C and E
Option 3: Move C & E to site 2 and proceed with the local 3-tables join
Option 4: Move S to site 1 and proceed with a local 3-tables join
Example Contd…
Which of these options will perform the best?
 The only correct answer is “It depends”.
The optimal choice will depends on:
 the size of the tables,
 the size of the result sets (the number of qualifying rows and their
length in bytes) and
 the efficiency of the network.
Optimal Distribution Strategies for
Simple QueriesA query optimization algorithm is an algorithm that derives a distribution
strategy for a given query.
Query optimization algorithms that derive optimal distribution strategies for a class of distributed
queries called simple queries.
There are various algorithms that are used for query optimization such as:
Algorithm PARALLEL:
 Algorithm PARALLEL was used to derive a minimal response time distribution strategy for any
given simple query.
 Algorithm PARALLEL searches for cost beneficial data transmissions by trying to join small
relations to large relations.
Algorithm SERIAL:
 Finds strategy with minimum total time
 consists of transmitting each relation, starting with Ri, to the next relation in a serial order.
 The strategy is represented by R1 -> R2 ->…….-> Rm->Rr, where Rr is the relation at the result
node.
Algorithm GENERAL:
• Algorithm GENERAL derives a query processing strategy for either
response time or total time minimization by using the procedures
RESPONSE, TOTAL, and COLLECTIVE.
• a relation can contain more than one joining attribute.
• It has three versions as :-
I. Response Time Version
II. Total Time Version
III. Handling Redundant Data Transmission
Conclusion
 Algorithm GENERAL to be an efficient algorithm of polynomial complexity that derives close to
optimal query processing strategies on distributed systems.
 Algorithm GENERAL is an extension of processing tactics found optimal for simple queries in
Algorithm PARALLEL and algorithm SERIAL
 There are two primary versions of Algorithm GENERAL
1. To minimize response time of a processing strategy, parallel data transmissions are emphasized
by the use of Algorithm PARALLEL and Procedure RESPONSE.
2. To minimize the total time of a processing strategy, serial time transmissions are emphasized by
the use of Algorithm SERIAL and Procedure TOTAL
Thank you.

More Related Content

What's hot

Ddb 1.6-design issues
Ddb 1.6-design issuesDdb 1.6-design issues
Ddb 1.6-design issuesEsar Qasmi
 
Naming in Distributed Systems
Naming in Distributed SystemsNaming in Distributed Systems
Naming in Distributed SystemsNandakumar P
 
Join ordering in fragment queries
Join ordering in fragment queriesJoin ordering in fragment queries
Join ordering in fragment queriesIfzalhussainkhan
 
Architecture of Mobile Computing
Architecture of Mobile ComputingArchitecture of Mobile Computing
Architecture of Mobile ComputingJAINIK PATEL
 
Data cube computation
Data cube computationData cube computation
Data cube computationRashmi Sheikh
 
13. Query Processing in DBMS
13. Query Processing in DBMS13. Query Processing in DBMS
13. Query Processing in DBMSkoolkampus
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systemssumitjain2013
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing modelsishmecse13
 
Grid protocol architecture
Grid protocol architectureGrid protocol architecture
Grid protocol architecturePooja Dixit
 
Query processing and optimization (updated)
Query processing and optimization (updated)Query processing and optimization (updated)
Query processing and optimization (updated)Ravinder Kamboj
 
File Protection in Operating System
File Protection in Operating SystemFile Protection in Operating System
File Protection in Operating SystemMeghaj Mallick
 
Security services and mechanisms
Security services and mechanismsSecurity services and mechanisms
Security services and mechanismsRajapriya82
 
Distributed concurrency control
Distributed concurrency controlDistributed concurrency control
Distributed concurrency controlBinte fatima
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed SystemsRupsee
 

What's hot (20)

Parallel Database
Parallel DatabaseParallel Database
Parallel Database
 
Ddb 1.6-design issues
Ddb 1.6-design issuesDdb 1.6-design issues
Ddb 1.6-design issues
 
Naming in Distributed Systems
Naming in Distributed SystemsNaming in Distributed Systems
Naming in Distributed Systems
 
Distributed deadlock
Distributed deadlockDistributed deadlock
Distributed deadlock
 
Join ordering in fragment queries
Join ordering in fragment queriesJoin ordering in fragment queries
Join ordering in fragment queries
 
Architecture of Mobile Computing
Architecture of Mobile ComputingArchitecture of Mobile Computing
Architecture of Mobile Computing
 
Data cube computation
Data cube computationData cube computation
Data cube computation
 
13. Query Processing in DBMS
13. Query Processing in DBMS13. Query Processing in DBMS
13. Query Processing in DBMS
 
And or graph
And or graphAnd or graph
And or graph
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing models
 
Grid protocol architecture
Grid protocol architectureGrid protocol architecture
Grid protocol architecture
 
Run time storage
Run time storageRun time storage
Run time storage
 
Query processing and optimization (updated)
Query processing and optimization (updated)Query processing and optimization (updated)
Query processing and optimization (updated)
 
File Protection in Operating System
File Protection in Operating SystemFile Protection in Operating System
File Protection in Operating System
 
25 DNS
25 DNS25 DNS
25 DNS
 
Security services and mechanisms
Security services and mechanismsSecurity services and mechanisms
Security services and mechanisms
 
Distributed concurrency control
Distributed concurrency controlDistributed concurrency control
Distributed concurrency control
 
File system structure
File system structureFile system structure
File system structure
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
 

Similar to Query processing strategies in distributed database

Presenting an Algorithm for Tasks Scheduling in Grid Environment along with I...
Presenting an Algorithm for Tasks Scheduling in Grid Environment along with I...Presenting an Algorithm for Tasks Scheduling in Grid Environment along with I...
Presenting an Algorithm for Tasks Scheduling in Grid Environment along with I...Editor IJCATR
 
Query optimization
Query optimizationQuery optimization
Query optimizationPooja Dixit
 
A HYBRID CLUSTERING ALGORITHM FOR DATA MINING
A HYBRID CLUSTERING ALGORITHM FOR DATA MININGA HYBRID CLUSTERING ALGORITHM FOR DATA MINING
A HYBRID CLUSTERING ALGORITHM FOR DATA MININGcscpconf
 
An enhanced adaptive scoring job scheduling algorithm with replication strate...
An enhanced adaptive scoring job scheduling algorithm with replication strate...An enhanced adaptive scoring job scheduling algorithm with replication strate...
An enhanced adaptive scoring job scheduling algorithm with replication strate...eSAT Publishing House
 
A survey of various scheduling algorithm in cloud computing environment
A survey of various scheduling algorithm in cloud computing environmentA survey of various scheduling algorithm in cloud computing environment
A survey of various scheduling algorithm in cloud computing environmenteSAT Journals
 
A survey of various scheduling algorithm in cloud computing environment
A survey of various scheduling algorithm in cloud computing environmentA survey of various scheduling algorithm in cloud computing environment
A survey of various scheduling algorithm in cloud computing environmenteSAT Publishing House
 
Comparative analysis of various data stream mining procedures and various dim...
Comparative analysis of various data stream mining procedures and various dim...Comparative analysis of various data stream mining procedures and various dim...
Comparative analysis of various data stream mining procedures and various dim...Alexander Decker
 
Proposing an Appropriate Pattern for Car Detection by Using Intelligent Algor...
Proposing an Appropriate Pattern for Car Detection by Using Intelligent Algor...Proposing an Appropriate Pattern for Car Detection by Using Intelligent Algor...
Proposing an Appropriate Pattern for Car Detection by Using Intelligent Algor...Editor IJCATR
 
Partitioning of Query Processing in Distributed Database System to Improve Th...
Partitioning of Query Processing in Distributed Database System to Improve Th...Partitioning of Query Processing in Distributed Database System to Improve Th...
Partitioning of Query Processing in Distributed Database System to Improve Th...IRJET Journal
 
IRJET- Machine Learning Techniques for Code Optimization
IRJET-  	  Machine Learning Techniques for Code OptimizationIRJET-  	  Machine Learning Techniques for Code Optimization
IRJET- Machine Learning Techniques for Code OptimizationIRJET Journal
 
A time efficient and accurate retrieval of range aggregate queries using fuzz...
A time efficient and accurate retrieval of range aggregate queries using fuzz...A time efficient and accurate retrieval of range aggregate queries using fuzz...
A time efficient and accurate retrieval of range aggregate queries using fuzz...IJECEIAES
 
Implementation of query optimization for reducing run time
Implementation of query optimization for reducing run timeImplementation of query optimization for reducing run time
Implementation of query optimization for reducing run timeAlexander Decker
 
Overview of query evaluation
Overview of query evaluationOverview of query evaluation
Overview of query evaluationavniS
 
Extended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithmExtended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithmIJMIT JOURNAL
 
Extended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithmExtended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithmIJMIT JOURNAL
 
An Analysis on Query Optimization in Distributed Database
An Analysis on Query Optimization in Distributed DatabaseAn Analysis on Query Optimization in Distributed Database
An Analysis on Query Optimization in Distributed DatabaseEditor IJMTER
 
A Study of Efficiency Improvements Technique for K-Means Algorithm
A Study of Efficiency Improvements Technique for K-Means AlgorithmA Study of Efficiency Improvements Technique for K-Means Algorithm
A Study of Efficiency Improvements Technique for K-Means AlgorithmIRJET Journal
 

Similar to Query processing strategies in distributed database (20)

Presenting an Algorithm for Tasks Scheduling in Grid Environment along with I...
Presenting an Algorithm for Tasks Scheduling in Grid Environment along with I...Presenting an Algorithm for Tasks Scheduling in Grid Environment along with I...
Presenting an Algorithm for Tasks Scheduling in Grid Environment along with I...
 
Query optimization
Query optimizationQuery optimization
Query optimization
 
A HYBRID CLUSTERING ALGORITHM FOR DATA MINING
A HYBRID CLUSTERING ALGORITHM FOR DATA MININGA HYBRID CLUSTERING ALGORITHM FOR DATA MINING
A HYBRID CLUSTERING ALGORITHM FOR DATA MINING
 
An enhanced adaptive scoring job scheduling algorithm with replication strate...
An enhanced adaptive scoring job scheduling algorithm with replication strate...An enhanced adaptive scoring job scheduling algorithm with replication strate...
An enhanced adaptive scoring job scheduling algorithm with replication strate...
 
A survey of various scheduling algorithm in cloud computing environment
A survey of various scheduling algorithm in cloud computing environmentA survey of various scheduling algorithm in cloud computing environment
A survey of various scheduling algorithm in cloud computing environment
 
A survey of various scheduling algorithm in cloud computing environment
A survey of various scheduling algorithm in cloud computing environmentA survey of various scheduling algorithm in cloud computing environment
A survey of various scheduling algorithm in cloud computing environment
 
dd presentation.pdf
dd presentation.pdfdd presentation.pdf
dd presentation.pdf
 
Comparative analysis of various data stream mining procedures and various dim...
Comparative analysis of various data stream mining procedures and various dim...Comparative analysis of various data stream mining procedures and various dim...
Comparative analysis of various data stream mining procedures and various dim...
 
Proposing an Appropriate Pattern for Car Detection by Using Intelligent Algor...
Proposing an Appropriate Pattern for Car Detection by Using Intelligent Algor...Proposing an Appropriate Pattern for Car Detection by Using Intelligent Algor...
Proposing an Appropriate Pattern for Car Detection by Using Intelligent Algor...
 
Partitioning of Query Processing in Distributed Database System to Improve Th...
Partitioning of Query Processing in Distributed Database System to Improve Th...Partitioning of Query Processing in Distributed Database System to Improve Th...
Partitioning of Query Processing in Distributed Database System to Improve Th...
 
IRJET- Machine Learning Techniques for Code Optimization
IRJET-  	  Machine Learning Techniques for Code OptimizationIRJET-  	  Machine Learning Techniques for Code Optimization
IRJET- Machine Learning Techniques for Code Optimization
 
A time efficient and accurate retrieval of range aggregate queries using fuzz...
A time efficient and accurate retrieval of range aggregate queries using fuzz...A time efficient and accurate retrieval of range aggregate queries using fuzz...
A time efficient and accurate retrieval of range aggregate queries using fuzz...
 
Implementation of query optimization for reducing run time
Implementation of query optimization for reducing run timeImplementation of query optimization for reducing run time
Implementation of query optimization for reducing run time
 
D0931621
D0931621D0931621
D0931621
 
Overview of query evaluation
Overview of query evaluationOverview of query evaluation
Overview of query evaluation
 
Extended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithmExtended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithm
 
genetic paper
genetic papergenetic paper
genetic paper
 
Extended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithmExtended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithm
 
An Analysis on Query Optimization in Distributed Database
An Analysis on Query Optimization in Distributed DatabaseAn Analysis on Query Optimization in Distributed Database
An Analysis on Query Optimization in Distributed Database
 
A Study of Efficiency Improvements Technique for K-Means Algorithm
A Study of Efficiency Improvements Technique for K-Means AlgorithmA Study of Efficiency Improvements Technique for K-Means Algorithm
A Study of Efficiency Improvements Technique for K-Means Algorithm
 

More from ShreerajKhatiwada

The Power of 5th Generation Networks: Uses, Future Trends
The Power of 5th Generation Networks: Uses, Future TrendsThe Power of 5th Generation Networks: Uses, Future Trends
The Power of 5th Generation Networks: Uses, Future TrendsShreerajKhatiwada
 
Green Computing Initiatives in Recent World
Green Computing Initiatives in Recent WorldGreen Computing Initiatives in Recent World
Green Computing Initiatives in Recent WorldShreerajKhatiwada
 
Computer Graphics and Animation in Detail
Computer Graphics and Animation in DetailComputer Graphics and Animation in Detail
Computer Graphics and Animation in DetailShreerajKhatiwada
 
Artificial Intelligence General Overview
Artificial Intelligence General OverviewArtificial Intelligence General Overview
Artificial Intelligence General OverviewShreerajKhatiwada
 
Basic Computer Architeccture
Basic Computer ArchitecctureBasic Computer Architeccture
Basic Computer ArchitecctureShreerajKhatiwada
 

More from ShreerajKhatiwada (7)

The Power of 5th Generation Networks: Uses, Future Trends
The Power of 5th Generation Networks: Uses, Future TrendsThe Power of 5th Generation Networks: Uses, Future Trends
The Power of 5th Generation Networks: Uses, Future Trends
 
Green Computing Initiatives in Recent World
Green Computing Initiatives in Recent WorldGreen Computing Initiatives in Recent World
Green Computing Initiatives in Recent World
 
Computer Graphics and Animation in Detail
Computer Graphics and Animation in DetailComputer Graphics and Animation in Detail
Computer Graphics and Animation in Detail
 
Artificial Intelligence General Overview
Artificial Intelligence General OverviewArtificial Intelligence General Overview
Artificial Intelligence General Overview
 
Geographic data quality
Geographic data qualityGeographic data quality
Geographic data quality
 
Basic Computer Architeccture
Basic Computer ArchitecctureBasic Computer Architeccture
Basic Computer Architeccture
 
Cluster computing
Cluster computingCluster computing
Cluster computing
 

Recently uploaded

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 

Recently uploaded (20)

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 

Query processing strategies in distributed database

  • 1. Query Processing Strategies in Distributed Database (Journal of Engineering, Computers & Applied Sciences (JEC&AS) ISSN No: 2319‐5606 Volume 2, No.7, July 2013) Presented By:- Shree Raj Khatiwada
  • 2. Introduction  Query: Instruction to DBMS to update or retrieve specific data to/from the physically stored medium.  Query Processor: There are three steps during the processing of that query: 1. Parsing and Translation: the human readable form of the query is translated into forms usable by the DBMS i.e. Relational algebra expression, query tree and query graph SELECT Ename FROM Employee WHERE Salary > 5000; This can be translated into following Relational Algebra Expressions: σ Salary > 5000 (π Ename (Employee)) OR π Ename (σ Salary > 5000 (Employee)) Fig: Steps in Query Processing
  • 3. Introduction contd… 2. Optimizing the Query:  determines the efficient way to execute a query with different possible query plans.  Main aim is to minimize the cost function, I/O Cost + CPU Cost + Communication Cost  defines how an RDBMS can improve the performance of the query by re- ordering the operations. 3. Evaluating the Query:  The query-execution engine takes an (optimal) evaluation plan, executes that plan, and returns the answers to the query.
  • 4. Distributed Query Processing  In a distributed database environment, data is stored at different sites connected through network.  Distributed query processing contains four stages, which are: 1. Query decomposition  Calculus Query as an input  Using global schema the calculus query is decomposed to algebraic query 2. Data Localization  Algebraic query as an input  Uses fragment schema to generate localized fragment query  Fragment involvement is determined
  • 5. Distributed Query Processing contd… 3. Global Optimization  Fragment query is an input  Uses fragment statistics to get optimized fragment query as an output.  Finding best global schedule is done 4. Local Optimization  Local schema is used to get optimized local query and then executed  Output is returned to the site from where the query was generated.
  • 6. Distributed Query Optimization Distributed query optimization is defined as finding the efficient execution strategy path in distributed network. There are three components of distributed query optimization:  Access Method: methods used to access data from distributed environment  Join Criteria: In distributed database join criteria is used to join the different sites to get optimized result.  Transmission Costs: Cost of transmitting the results from intermediate steps needs to be considered . There are many issues in distributed query optimization such as types of optimizer, optimization granularity, network topologies and optimization timing
  • 7. Example Site 1: COURSE, ENROLLMENT Site 2: STUDENT (Course: Physics and Student: Senior) There are many ways to optimize this three-table join some of which are: Option 1: Start with site 1, join C & E retrieving only physics course and move entire result set to site 2 to be joined with S. Option 2: Star with site 2, retrieve only senior student from S and move the entire result set to site 1 to be joined with C and E Option 3: Move C & E to site 2 and proceed with the local 3-tables join Option 4: Move S to site 1 and proceed with a local 3-tables join
  • 8. Example Contd… Which of these options will perform the best?  The only correct answer is “It depends”. The optimal choice will depends on:  the size of the tables,  the size of the result sets (the number of qualifying rows and their length in bytes) and  the efficiency of the network.
  • 9. Optimal Distribution Strategies for Simple QueriesA query optimization algorithm is an algorithm that derives a distribution strategy for a given query. Query optimization algorithms that derive optimal distribution strategies for a class of distributed queries called simple queries. There are various algorithms that are used for query optimization such as: Algorithm PARALLEL:  Algorithm PARALLEL was used to derive a minimal response time distribution strategy for any given simple query.  Algorithm PARALLEL searches for cost beneficial data transmissions by trying to join small relations to large relations.
  • 10. Algorithm SERIAL:  Finds strategy with minimum total time  consists of transmitting each relation, starting with Ri, to the next relation in a serial order.  The strategy is represented by R1 -> R2 ->…….-> Rm->Rr, where Rr is the relation at the result node. Algorithm GENERAL: • Algorithm GENERAL derives a query processing strategy for either response time or total time minimization by using the procedures RESPONSE, TOTAL, and COLLECTIVE. • a relation can contain more than one joining attribute. • It has three versions as :- I. Response Time Version II. Total Time Version III. Handling Redundant Data Transmission
  • 11. Conclusion  Algorithm GENERAL to be an efficient algorithm of polynomial complexity that derives close to optimal query processing strategies on distributed systems.  Algorithm GENERAL is an extension of processing tactics found optimal for simple queries in Algorithm PARALLEL and algorithm SERIAL  There are two primary versions of Algorithm GENERAL 1. To minimize response time of a processing strategy, parallel data transmissions are emphasized by the use of Algorithm PARALLEL and Procedure RESPONSE. 2. To minimize the total time of a processing strategy, serial time transmissions are emphasized by the use of Algorithm SERIAL and Procedure TOTAL