SlideShare a Scribd company logo
1 of 20
PHASES OF DISTRIBUTED
QUERY PROCESSING -I
PRESENTATION MEMBERS
-ANU ISSAC
-CRYSTAL CUTHINHO
-LEON D’SOUZA
-NEVIL D’SOUZA
-ANDREA FURTADO
• SQL , Parsing , The SQL query determines what data is to be found, but does not define the method by
which the data manager searches the database.
• Indexing, hashing, Views , ...
OBJECTIVES OF QUERY PROCESSING
• First and main objective of query Processing, "To convert high level language(SQL) to low level
language(Relational Algebra)".
• In distributed systems, the query written on single machine but are actually executed on different local
database. as the local database provides the data to execute the query.
• A query can be processed using various techniques, such that the technique should be efficient to
execute the query in distributed environment.
• To minimize the overall cost of execution.(I/O cost + CPU cost +Communication cost).
• to minimize the time required to execute the query.(I/O time + CPU time +Communication time).
• This phase brings query into normalized form in order of easier processing of query.
• its specifically focus on the where clause of query.
2. ANALYSIS
• Lexical & Syntactical analysis
• Verification of relations & attributes
• Conflict between operations
• Checks if result is possible
2. ANALYSIS
SEMANTIC ANALYSIS :
1) Connection Graph:
aka Query Graph
2. ANALYSIS
SEMANTIC ANALYSIS :
2) Join Graph:
-Subgraph of connection graph
-Only join operations considered
3. SIMPLIFICATION
• Detects redundant predicates
• Transforms queries – makes them simple & efficient
• Not at the cost of semantic correctness
• Checks for factors responsible for redundancy
QUERY RESTRUCTURING
1. Rewrites Query into equivalent Relational Algebra
2. Makes use of a Query Tree or Operator Tree
• Leaf node for every relation in the query
• Non-leaf node for intermediate relation we can generate
• Root node for the result of a query
3.Sequence of operation is from Leaf towards the Root
4.Transformation Rules are applied .
EXAMPLE
• Q) Find the names of employees other than Raj who worked on CAD/CAM project for either one or two
years.
• Query:
SELECT Ename
FROM PROJ, ASG, EMP
WHERE ASG.ENO=EMP.ENO
AND ASG.PNO=PROJ.PNO
AND ENAME ≠ “Raj”
AND PROJ.PNAME=“CAD/CAM”
AND (DUR=12 OR DUR=24);
ΠENAME (P)
σDUR=12 ORDUR=24(S)
σPNAME=“CAD/CAM”(S)
σENAME≠“RAJ”(S)
Pno(J) ENO
PROJ
ASG
EMP
RESTRUCTURING
FRAGMENTATION:
• Forming relational algebraic queries to be used on fragmented relations.
• Generation of fragmented query is done by replacing the global relations with
fragmented relation in the query tree of distributed query.
• The generic tree still has some scope for reconstruction and simplification.
• Generic tree is used to generate a simpler and optimized query by using
reduction technique.
• Type of fragmentation determines the reduction technique to be used.
REDUCTION FOR HORIZONTAL FRAGMENTATION:
• Reduction of generic tree is done using either selection operation
or join operation.
• Selection operation: Produces an intermediate relation that
remains empty if there is contradiction between selection
predicate and definition of the fragment.
• Join operation: Detects useless join operation by commuting joins
with union operation.
EXAMPLE
• Consider the schemas:
EMP(ENO, ENAME, TITLE) , ASG(ENO, PNO, RESP, DUR)
• Consider the following query and fragmentation: Query: SELECT *
FROM EMP, ASG WHERE EMP.ENO=ASG.ENO
• Horizontal fragmentation:
∗ EMP1 = σENO ≤ “ E3”(EMP) ASG1 = σENO ≤ ” E3”(ASG)
EMP2 = σ “ E3””<ENO<” E6”(EMP) ASG2 = σENO> ” E3”(ASG) –
EMP3 = σENO> ” E6”(EMP)
USING SELECTION OPERATION
• Consider the query: SELECT * FROM EMP WHERE ENO=”E5”
• Here the leaf node that corresponds to Employee relation in the generic tree
can be replaced by reconstruction rule.
• The selection predicate has a contradiction with the definition of EMP1 and
EMP3 fragment and produces empty result.
Department(deptno,dname,location)
• DEPT1= σ deptno<=10(Department)
• DEPT2= σ deptno>10(Department)
• Assume that the fragmention of employee relation is derived from department
• EMPi=Employee deptno DEPTi i=1,2
Select * from Employee,Department where depno>10 and Employee.deptno=Department.deptno.
Employee.deptno=Department.deptno
deptno>10
U
U
DEPT2
EMP1 EMP2
EMP2
Employee.deptno=Department.deptno
DEPT2DEPT1
Phases of distributed query processing

More Related Content

What's hot

management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactionsNilu Desai
 
Distributed design alternatives
Distributed design alternativesDistributed design alternatives
Distributed design alternativesPooja Dixit
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management SystemHardik Patil
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database SystemMeghaj Mallick
 
Query Decomposition and data localization
Query Decomposition and data localization Query Decomposition and data localization
Query Decomposition and data localization Hafiz faiz
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 ReliabilityAli Usman
 
Adbms 6 three schema database architecture
Adbms 6 three schema database architectureAdbms 6 three schema database architecture
Adbms 6 three schema database architectureVaibhav Khanna
 
Query processing-and-optimization
Query processing-and-optimizationQuery processing-and-optimization
Query processing-and-optimizationWBUTTUTORIALS
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Gyanmanjari Institute Of Technology
 
Cost estimation for Query Optimization
Cost estimation for Query OptimizationCost estimation for Query Optimization
Cost estimation for Query OptimizationRavinder Kamboj
 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architecturesPooja Dixit
 
Load Balancing in Parallel and Distributed Database
Load Balancing in Parallel and Distributed DatabaseLoad Balancing in Parallel and Distributed Database
Load Balancing in Parallel and Distributed DatabaseMd. Shamsur Rahim
 
Deadlock management
Deadlock managementDeadlock management
Deadlock managementAhmed kasim
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database conceptsTemesgenthanks
 
Query decomposition in data base
Query decomposition in data baseQuery decomposition in data base
Query decomposition in data baseSalman Memon
 

What's hot (20)

management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
 
Distributed design alternatives
Distributed design alternativesDistributed design alternatives
Distributed design alternatives
 
DDBMS Paper with Solution
DDBMS Paper with SolutionDDBMS Paper with Solution
DDBMS Paper with Solution
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
Query processing
Query processingQuery processing
Query processing
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database System
 
Query Decomposition and data localization
Query Decomposition and data localization Query Decomposition and data localization
Query Decomposition and data localization
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 Reliability
 
Adbms 6 three schema database architecture
Adbms 6 three schema database architectureAdbms 6 three schema database architecture
Adbms 6 three schema database architecture
 
Query processing-and-optimization
Query processing-and-optimizationQuery processing-and-optimization
Query processing-and-optimization
 
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS ArchitectureDistributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
 
Cost estimation for Query Optimization
Cost estimation for Query OptimizationCost estimation for Query Optimization
Cost estimation for Query Optimization
 
Distributed dbms architectures
Distributed dbms architecturesDistributed dbms architectures
Distributed dbms architectures
 
Load Balancing in Parallel and Distributed Database
Load Balancing in Parallel and Distributed DatabaseLoad Balancing in Parallel and Distributed Database
Load Balancing in Parallel and Distributed Database
 
Lec 7 query processing
Lec 7 query processingLec 7 query processing
Lec 7 query processing
 
Deadlock management
Deadlock managementDeadlock management
Deadlock management
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database concepts
 
Query decomposition in data base
Query decomposition in data baseQuery decomposition in data base
Query decomposition in data base
 
Distributed database
Distributed databaseDistributed database
Distributed database
 

Similar to Phases of distributed query processing

LECTURE_06_DATABASE PROCESSING & OPTIMAZATION.pptx
LECTURE_06_DATABASE PROCESSING & OPTIMAZATION.pptxLECTURE_06_DATABASE PROCESSING & OPTIMAZATION.pptx
LECTURE_06_DATABASE PROCESSING & OPTIMAZATION.pptxAthosBeatus
 
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptx
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptxPPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptx
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptxneju3
 
Parallelizing Pruning-based Graph Structural Clustering
Parallelizing Pruning-based Graph Structural ClusteringParallelizing Pruning-based Graph Structural Clustering
Parallelizing Pruning-based Graph Structural Clustering煜林 车
 
Lecture 5.pptx
Lecture 5.pptxLecture 5.pptx
Lecture 5.pptxShafii8
 
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12cPresentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12cRonald Francisco Vargas Quesada
 
PostgreSQL query planner's internals
PostgreSQL query planner's internalsPostgreSQL query planner's internals
PostgreSQL query planner's internalsAlexey Ermakov
 
Overview of query evaluation
Overview of query evaluationOverview of query evaluation
Overview of query evaluationavniS
 
Basic terminologies & asymptotic notations
Basic terminologies & asymptotic notationsBasic terminologies & asymptotic notations
Basic terminologies & asymptotic notationsRajendran
 
Query Optimization - Brandon Latronica
Query Optimization - Brandon LatronicaQuery Optimization - Brandon Latronica
Query Optimization - Brandon Latronica"FENG "GEORGE"" YU
 
Sql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices ISql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices ICarlos Oliveira
 
Natural Language Query to SQL conversion using Machine Learning Approach
Natural Language Query to SQL conversion using Machine Learning ApproachNatural Language Query to SQL conversion using Machine Learning Approach
Natural Language Query to SQL conversion using Machine Learning ApproachMinhazul Arefin
 
RAMSES: Robust Analytic Models for Science at Extreme Scales
RAMSES: Robust Analytic Models for Science at Extreme ScalesRAMSES: Robust Analytic Models for Science at Extreme Scales
RAMSES: Robust Analytic Models for Science at Extreme ScalesIan Foster
 
Adversarial Reinforced Learning for Unsupervised Domain Adaptation
Adversarial Reinforced Learning for Unsupervised Domain AdaptationAdversarial Reinforced Learning for Unsupervised Domain Adaptation
Adversarial Reinforced Learning for Unsupervised Domain Adaptationtaeseon ryu
 
Data Stream Management
Data Stream ManagementData Stream Management
Data Stream ManagementJohn Mike
 
10 Reasons to Start Your Analytics Project with PostgreSQL
10 Reasons to Start Your Analytics Project with PostgreSQL10 Reasons to Start Your Analytics Project with PostgreSQL
10 Reasons to Start Your Analytics Project with PostgreSQLSatoshi Nagayasu
 

Similar to Phases of distributed query processing (20)

Chapter15
Chapter15Chapter15
Chapter15
 
LECTURE_06_DATABASE PROCESSING & OPTIMAZATION.pptx
LECTURE_06_DATABASE PROCESSING & OPTIMAZATION.pptxLECTURE_06_DATABASE PROCESSING & OPTIMAZATION.pptx
LECTURE_06_DATABASE PROCESSING & OPTIMAZATION.pptx
 
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptx
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptxPPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptx
PPT-UEU-Database-Objek-Terdistribusi-Pertemuan-8.pptx
 
Parallelizing Pruning-based Graph Structural Clustering
Parallelizing Pruning-based Graph Structural ClusteringParallelizing Pruning-based Graph Structural Clustering
Parallelizing Pruning-based Graph Structural Clustering
 
Lecture 5.pptx
Lecture 5.pptxLecture 5.pptx
Lecture 5.pptx
 
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12cPresentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12c
 
Query optimization
Query optimizationQuery optimization
Query optimization
 
PostgreSQL query planner's internals
PostgreSQL query planner's internalsPostgreSQL query planner's internals
PostgreSQL query planner's internals
 
Overview of query evaluation
Overview of query evaluationOverview of query evaluation
Overview of query evaluation
 
Searching Algorithms
Searching AlgorithmsSearching Algorithms
Searching Algorithms
 
Query trees
Query treesQuery trees
Query trees
 
Basic terminologies & asymptotic notations
Basic terminologies & asymptotic notationsBasic terminologies & asymptotic notations
Basic terminologies & asymptotic notations
 
Query Optimization - Brandon Latronica
Query Optimization - Brandon LatronicaQuery Optimization - Brandon Latronica
Query Optimization - Brandon Latronica
 
Sql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices ISql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices I
 
Natural Language Query to SQL conversion using Machine Learning Approach
Natural Language Query to SQL conversion using Machine Learning ApproachNatural Language Query to SQL conversion using Machine Learning Approach
Natural Language Query to SQL conversion using Machine Learning Approach
 
RAMSES: Robust Analytic Models for Science at Extreme Scales
RAMSES: Robust Analytic Models for Science at Extreme ScalesRAMSES: Robust Analytic Models for Science at Extreme Scales
RAMSES: Robust Analytic Models for Science at Extreme Scales
 
Adversarial Reinforced Learning for Unsupervised Domain Adaptation
Adversarial Reinforced Learning for Unsupervised Domain AdaptationAdversarial Reinforced Learning for Unsupervised Domain Adaptation
Adversarial Reinforced Learning for Unsupervised Domain Adaptation
 
group 10 paper 10.pptx
group 10 paper 10.pptxgroup 10 paper 10.pptx
group 10 paper 10.pptx
 
Data Stream Management
Data Stream ManagementData Stream Management
Data Stream Management
 
10 Reasons to Start Your Analytics Project with PostgreSQL
10 Reasons to Start Your Analytics Project with PostgreSQL10 Reasons to Start Your Analytics Project with PostgreSQL
10 Reasons to Start Your Analytics Project with PostgreSQL
 

More from Nevil Dsouza

Nevil dsouza Resume 2020
Nevil dsouza Resume 2020Nevil dsouza Resume 2020
Nevil dsouza Resume 2020Nevil Dsouza
 
Nevil Dsouza's Resume
Nevil Dsouza's ResumeNevil Dsouza's Resume
Nevil Dsouza's ResumeNevil Dsouza
 
German Movie and Theatre Industry
German Movie and Theatre IndustryGerman Movie and Theatre Industry
German Movie and Theatre IndustryNevil Dsouza
 
Introduction and Comparison of Microprocessor Chip families
Introduction and Comparison of Microprocessor Chip familiesIntroduction and Comparison of Microprocessor Chip families
Introduction and Comparison of Microprocessor Chip familiesNevil Dsouza
 
Mobile communication systems Introduction
Mobile communication systems IntroductionMobile communication systems Introduction
Mobile communication systems IntroductionNevil Dsouza
 
Windows Networking Introduction
Windows Networking IntroductionWindows Networking Introduction
Windows Networking IntroductionNevil Dsouza
 

More from Nevil Dsouza (7)

Nevil dsouza Resume 2020
Nevil dsouza Resume 2020Nevil dsouza Resume 2020
Nevil dsouza Resume 2020
 
Nevil Dsouza's Resume
Nevil Dsouza's ResumeNevil Dsouza's Resume
Nevil Dsouza's Resume
 
German Movie and Theatre Industry
German Movie and Theatre IndustryGerman Movie and Theatre Industry
German Movie and Theatre Industry
 
Introduction and Comparison of Microprocessor Chip families
Introduction and Comparison of Microprocessor Chip familiesIntroduction and Comparison of Microprocessor Chip families
Introduction and Comparison of Microprocessor Chip families
 
Mobile communication systems Introduction
Mobile communication systems IntroductionMobile communication systems Introduction
Mobile communication systems Introduction
 
Windows Networking Introduction
Windows Networking IntroductionWindows Networking Introduction
Windows Networking Introduction
 
REPORT PPT 15-16
REPORT PPT 15-16REPORT PPT 15-16
REPORT PPT 15-16
 

Recently uploaded

VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一F La
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 

Recently uploaded (20)

VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 

Phases of distributed query processing

  • 1. PHASES OF DISTRIBUTED QUERY PROCESSING -I PRESENTATION MEMBERS -ANU ISSAC -CRYSTAL CUTHINHO -LEON D’SOUZA -NEVIL D’SOUZA -ANDREA FURTADO
  • 2. • SQL , Parsing , The SQL query determines what data is to be found, but does not define the method by which the data manager searches the database. • Indexing, hashing, Views , ...
  • 3.
  • 4. OBJECTIVES OF QUERY PROCESSING • First and main objective of query Processing, "To convert high level language(SQL) to low level language(Relational Algebra)". • In distributed systems, the query written on single machine but are actually executed on different local database. as the local database provides the data to execute the query. • A query can be processed using various techniques, such that the technique should be efficient to execute the query in distributed environment. • To minimize the overall cost of execution.(I/O cost + CPU cost +Communication cost). • to minimize the time required to execute the query.(I/O time + CPU time +Communication time). • This phase brings query into normalized form in order of easier processing of query. • its specifically focus on the where clause of query.
  • 5. 2. ANALYSIS • Lexical & Syntactical analysis • Verification of relations & attributes • Conflict between operations • Checks if result is possible
  • 6. 2. ANALYSIS SEMANTIC ANALYSIS : 1) Connection Graph: aka Query Graph
  • 7. 2. ANALYSIS SEMANTIC ANALYSIS : 2) Join Graph: -Subgraph of connection graph -Only join operations considered
  • 8. 3. SIMPLIFICATION • Detects redundant predicates • Transforms queries – makes them simple & efficient • Not at the cost of semantic correctness • Checks for factors responsible for redundancy
  • 9. QUERY RESTRUCTURING 1. Rewrites Query into equivalent Relational Algebra 2. Makes use of a Query Tree or Operator Tree • Leaf node for every relation in the query • Non-leaf node for intermediate relation we can generate • Root node for the result of a query 3.Sequence of operation is from Leaf towards the Root 4.Transformation Rules are applied .
  • 10. EXAMPLE • Q) Find the names of employees other than Raj who worked on CAD/CAM project for either one or two years. • Query: SELECT Ename FROM PROJ, ASG, EMP WHERE ASG.ENO=EMP.ENO AND ASG.PNO=PROJ.PNO AND ENAME ≠ “Raj” AND PROJ.PNAME=“CAD/CAM” AND (DUR=12 OR DUR=24);
  • 13. FRAGMENTATION: • Forming relational algebraic queries to be used on fragmented relations. • Generation of fragmented query is done by replacing the global relations with fragmented relation in the query tree of distributed query. • The generic tree still has some scope for reconstruction and simplification. • Generic tree is used to generate a simpler and optimized query by using reduction technique. • Type of fragmentation determines the reduction technique to be used.
  • 14. REDUCTION FOR HORIZONTAL FRAGMENTATION: • Reduction of generic tree is done using either selection operation or join operation. • Selection operation: Produces an intermediate relation that remains empty if there is contradiction between selection predicate and definition of the fragment. • Join operation: Detects useless join operation by commuting joins with union operation.
  • 15. EXAMPLE • Consider the schemas: EMP(ENO, ENAME, TITLE) , ASG(ENO, PNO, RESP, DUR) • Consider the following query and fragmentation: Query: SELECT * FROM EMP, ASG WHERE EMP.ENO=ASG.ENO • Horizontal fragmentation: ∗ EMP1 = σENO ≤ “ E3”(EMP) ASG1 = σENO ≤ ” E3”(ASG) EMP2 = σ “ E3””<ENO<” E6”(EMP) ASG2 = σENO> ” E3”(ASG) – EMP3 = σENO> ” E6”(EMP)
  • 16. USING SELECTION OPERATION • Consider the query: SELECT * FROM EMP WHERE ENO=”E5” • Here the leaf node that corresponds to Employee relation in the generic tree can be replaced by reconstruction rule. • The selection predicate has a contradiction with the definition of EMP1 and EMP3 fragment and produces empty result.
  • 17.
  • 18. Department(deptno,dname,location) • DEPT1= σ deptno<=10(Department) • DEPT2= σ deptno>10(Department) • Assume that the fragmention of employee relation is derived from department • EMPi=Employee deptno DEPTi i=1,2 Select * from Employee,Department where depno>10 and Employee.deptno=Department.deptno.