分布式查询处理 Distributed Query Processing(PPT讲稿)查询处理、查询分解与定位

5. Distributed Query Processing Chapter 7 Overview of Query Processing Chapter 8 Query Decomposition and Data Localization
1 5. Distributed Query Processing Chapter 7 Overview of Query Processing Chapter 8 Query Decomposition and Data Localization

Outline Overview of Query Processing(查询处理) Query Decomposition and Localization(查询分解 与定位)
2 Outline Overview of Query Processing (查询处理) Query Decomposition and Localization (查询分解 与定位)

Query Processing High level user query Quer Processor Low level data manipulation commands
3 Query Processing High level user query Low level data manipulation commands Query Processor

Query Processing Components Query language that is used SQL ( Structured Query Language) Query execution methodology the steps that the system goes through in executing high-level (declarative)user queries Query optimization How to determine the best execution plan?
4 Query Processing Components Query language that is used SQL (Structured Query Language) Query execution methodology The steps that the system goes through in executing high-level (declarative) user queries Query optimization How to determine the “best” execution plan?

Query language Tuple calculus:(t F(t) where t is a tuple variable, and f(t is a well formed formula Example Get the numbers and names of all managers tENo, ENAMeIt E EMP At(TITLE)="MANAGER")
5 Tuple calculus: { t | F(t) } where t is a tuple variable, and F(t) is a well formed formula Example: Get the numbers and names of all managers. t(ENO,ENAME)|t EMPt(TITLE) = "MANAGER" Query Language

Query Language(cont) Domain calculus: x,x2,,X, F(x x2, ,x,) where x, is a domain variable, and Fx, x,, x, )is a well formed formula Example Lx, y EMP(x, y, Manager")) Variables are position sensitive
6 Domain calculus: where xi is a domain variable, and is a well formed formula Example: { x, y | EMP(x, y, “Manager") } x1 , x2 , , xn | F(x1 , x2 , , xn ) ( ) n F x , x , , x 1 2 Variables are position sensitive! Query Language (cont.)

Query Language(cont SQL is a tuple calculus language SE工 ECT ENO, ENAME FROM EMP WHERE TITLE=Programmer End user uses non-procedural(declarative) languages to express queries 7
7 SQL is a tuple calculus language. SELECT ENO,ENAME FROM EMP WHERE TITLE=“Programmer” End user uses non-procedural (declarative) languages to express queries. Query Language (cont.)

Query Processing objectives problems Query processor transforms queries into procedural operations to access data in an optimal way Calculus Relational Query Processor Formula (Optimizer) Algebra Operations Distributed query processor has to deal with query decomposition and data localization
8 Query Processing Objectives & Problems Query processor transforms queries into procedural operations to access data in an optimal way. Distributed query processor has to deal with query decomposition and data localization

Centralized Query Processing Alternatives SELEC ENAME FROM EMP卫,ASGG WHERE E. ENO G ENO AND TITLE=manager Strategy1:兀 ENAME O TITLE="manager "AE. ENO=G.ENO EXG Strategy 2: T ENAME E D1 ENO TITLE="manager (G) Strategy 2 avoids Cartesian product, so is " better
9 Centralized Query Processing Alternatives SELECT ENAME FROM EMP E, ASG G WHERE E.ENO = G.ENO AND TITLE=“manager” Strategy 2 avoids Cartesian product, so is “better”. Strategy 1: Strategy 2: ( (E G)) ENAME TITLE = "manager"E.ENO=G.ENO (E (G)) ENAME ENO TITLE = "manager

Distributed Query processing Query processor must consider the communication cost and select the best site The same query example, but relation G and e are fragmented and distributed (G)|G1 OENO E3 (G)G2 ENO<"E3" Sitel Site ENOs"E3″ (E) E) El OENO"E3 E2 Site3
10 Distributed Query Processing Query processor must consider the communication cost and select the best site. The same query example, but relation G and E are fragmented and distributed
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 广东工业大学:数据挖掘(PPT讲稿).ppt
- 北京师范大学现代远程教育:《计算机应用基础》课程教学资源(PPT课件讲稿)第4章 文字处理Word.pptx
- Java平台企业版(J2EE)原理(PPT讲稿).ppt
- 非线性编辑软件(PPT课件讲稿)Premiere Pro.pptx
- 南京大学:人工智能课程概况(PPT讲稿)从图灵奖看人工智能创新性思维的发展.pdf
- 上海交通大学:《软件工程》课程教学资源(课件讲稿)07 测试.pdf
- 《C语言程序设计》课程电子教案(PPT教学课件)第5章 选择控制结构.ppt
- 《计算机网络》课程教学资源(PPT讲稿)项目1 构建简单互连网络(Windows XP).ppt
- 并行算法概述(PPT课件讲稿).pptx
- 武汉大学:《数据库系统概论》课程教学资源(PPT课件讲稿)第4章 关系数据库理论.ppt
- 西安电子科技大学:《信息系统安全》课程教学资源(PPT课件讲稿)第五章 操作系统安全、第六章 网络安全、第七章 应用安全、第八章 管理安全.ppt
- 华中科技大学:《操作系统原理》课程电子教案(PPT教学课件)第一章 绪论Principles of Operating System(主讲:郑然).ppt
- 《图像处理与计算机视觉 Image Processing and Computer Vision》课程教学资源(PPT课件讲稿)Chapter 07 Mean-shift and Cam-shift.pptx
- 安徽工贸职业技术学院:《计算机组装与维护》课程教学资源(PPT课件讲稿)项目四 搭建微型计算机软件系统.ppt
- 《网站建设》课程教学资源(PPT课件讲稿)第五章 Javascript脚本语言.ppt
- 中央电大:《计算机组成原理》课程教学资源(PPT课件讲稿)教学辅导.ppt
- 中国科学技术大学:《并行计算 Parallel Computing》课程教学资源(PPT课件讲稿)图论补充内容.pptx
- 《编译原理》课程教学资源(PPT课件讲稿)第六章 句法结构模式识别.ppt
- 《数据库原理》课程教学资源(PPT课件讲稿)第五章 数据库的存储结构.ppt
- 清华大学出版社:《C程序设计》课程PPT教学课件(第三版)第二章 程序的灵魂——算法.ppt
- 多媒体技术:多媒体信息处理(Multimedia Computing)PPT讲义.ppt
- 高校数字化图书馆知识服务网络共建共享方案的建议(王明亮).ppt
- Linux操作系统下C语言编程入门(电子书).pdf
- 北京大学精品课程:浅谈软件项目管理(陈长城).pdf
- 河南中医药大学信息管理与信息系统教研室:第十四章 电子政务(刘俊娟).pptx
- 人工智能和模式识别与医学专家系统(PPT课件讲稿).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)引言、背景概述.ppt
- 西安电子科技大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第五章 总线及其形成.ppt
- 西安电子科技大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第八章 中断系统与可编程中断控制器8259A.pptx
- 西安电子科技大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第六章 存储器设计.pptx
- 西安电子科技大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第十章 并行接口芯片8255A应用设计.pptx
- 西安电子科技大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第四章 汇编语言程序设计.pptx
- 西安电子科技大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第一章 概述(王晓甜).pptx
- 西安电子科技大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第七章 常用接口芯片技术.pptx
- 西安电子科技大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第三章 8086CPU指令系统.pptx
- 西安电子科技大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第九章 定时计数器8253.pptx
- 西安电子科技大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第二章 8086CPU结构与功能(CPU的内部结构).pptx
- 浙江科技学院:《多媒体技术基础 Multimedia Technology》课程教学资源(PPT课件讲稿)第1章 多媒体技术概论.ppt
- 《网络教学的实践与应用》PPT讲稿.ppt
- 教育信息技术培训:《Powerpoint 教案制作》PPT.ppt