
第23卷 第1期
2000年1月
计 算 机 学 报
CHINESE JCOMPUT ERS
Vol23 No1
Jan2000
Shared
nothing
并行数据库系统查询优化技术
文继荣
1)
陈 红
1) 2)
王 珊
2)
1)
( 中国科学院计算技术研究所 北京 100080)
2)
( 中国人民大学数据与知识工程研究所 北京100872)
收稿日期19990125修改稿收到日期19990622本课题得到国家自然科学基金(6988300) 和八六三高技术研究发展计划(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
评论