暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
Shared-nothing 并行数据库系统查询优化技术.pdf
84
11页
1次
2024-03-01
免费下载
23 1
20001
CHINESE JCOMPUT ERS
Vol23 No1
Jan2000
Shared
nothing
并行数据库系统查询优化技术
文继荣
1
1 2
2
1
中国计算研究 北京 100080
2
中国学数知识研究 100872
稿日19990125稿199906226988300 863
306
ZD
0102041 文继1972
Web
数据 1965
1944教授博士导师主要方向据库识库
查询
Shared
nothing
PBASE
2
PBASE
2
并行
Shared
nothing
T P
311
Query Optimization Techniques of A Shared
nothing Parallel Database System
WEN Ji
Rong
1
CHEN Hong
1 2
WANG Shan
2
1
I nstitute of Comp uting T echnology
Chinese A cademy of S ciences
Beij ing
100080
2
I nstitute of Data and K now ledge Engineer ing
Renmin University of China
Beij ing
100872
Abstract
Query optimization is the critical technique of parallel database systems
T his paper
addresses the distinguishing two
phase optimization strategy implemented in a shared
nothing
parallel database system PBASE
2
In order to cut down the enormous search space of parallel
query optimization
PBASE
2
divides parallel query processing into two phases
sequential
optimization and parallelization
In sequential optimization
PBASE
2
predicts the
communication cost of parallel execution
and addes communication cost into cost model
At the
same time
the traditional dynamic programming search algorithm is modified and extended
By
these mechanisms
it is guaranteed that the sequential minimal
cost plan also is the parallel
minimal
cost plan
T he object of parallelization phase is to balance the query w ork loading among
various resources in the system
T hus
a new concept
resources load
balancing factor
is put
forward
Other techniques such as heuristics
dynamic programming
based parallelizaion
algorithm
and task scheduling ensure the quality of the outgoing parallel query evaluation plans
Keywords
parallel database system
parallel query optimization
Shared
nothing
two
phase
optimization
resources load
balance
1
并行查询优化主要涉及到三方面的工首先
PQEP
表示模型
PM
任意一个查询
Q
可以用模
PM
中若等价
Q
E
CM
CM
可以为
PM
中的任意一个计划计算一个代
Cost
PQEP
E
P
0
使
Cost
P
0
Min
PE
Cost
P
都是围绕这三个方面进行的
并行查询执行计划表示模型定义并行查询执行
计划基本
述查执行
的执信息
示模型是整个并行查询处理的基础和出发点
7
代价模型的主要功能是按照给定的代价指标
根据操作的处理特性操作间的相互关数据的物
理统信息
线
Pipeline latency
Data skew
的资源冲突等因素的影响使得精确的并行计划代价
模型的构造非常困难
1313
并行查询优化的主要困难在于如何缩减其庞大
的计搜索13
n
系的查询的连接的数
x
n
2n2
n1
x
n
又可以通过不同的并行化方法生成大量的并行执行
计划此并
行计的搜
据库系统中对查询空间进行穷尽搜索还有可能的话
例如
n
5
搜索方法的性能是完全不可接受的必须采用
适当方法
那些可能
种最主要的思路
1 用启发式搜索方法通过一些启发式规
从而只搜索整个空间的部分子空间最有影响的
11
机算法
8
2 搜索空间的大小预先进行限制使得搜
空间规模
采用设的
5
9
限制连接树形状的方法 例如线性树
6
以上两种方案的共同点是通过对影响计划质量
的一因素
启发式规则通过应用这些规则可以不经过代价比
较而直接裁减掉某些在这些规则看来不可能是优化
的计划如果这些规则是预设的 即无条件的 则被
称为减计
使
则被称为加速搜索的启发式规则
并行查询优化必须采用适当的启发式规则来降
低优的复
询优器性
明显缩减搜索空间的同时又能尽量保留那些优化的
计划
XPRS
系统中采用的两阶段优化方法是最有
5
思想把查
传统的查询优化方法产生一个高效的顺序查询执行
计划第二阶段称为并行化阶段对第一阶段产生的
顺序询执
行查执行
空间并且可以直接利用传统的成熟的顺序优化技
系统设计人员只需将精力集中于并行化阶段
两阶段优化技术的有效性依赖于一个重要的假
称为段假
以得最优
的关问题
计划在并行化后仍然保持其优化性般来说要保
证两阶段假设成立必须有两个前提
1 系统
代价源消
会因为并行化额外开销的增加而不再最优
2 顺序
地并
不充分而不再最优
Shared
everything
简称
SE
行方式的情况下才
SE
结构并行开销
很小作系
分配
29
1
Shared
nothing
of 11
免费下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜