
软件学报 ISSN 1000-9825, CODEN RUXUEW E-mail: jos@iscas.ac.cn
Journal of Software,2020,31(3):634−647 [doi: 10.13328/j.cnki.jos.005906] http://www.jos.org.cn
©中国科学院软件研究所版权所有. Tel: +86-10-62562563
面向关系数据库的智能索引调优方法
∗
邱
涛
1
,
王
斌
1
,
舒昭维
1
,
赵智博
1
,
宋子文
1
,
钟延辉
2
1
(东北大学 计算机科学与工程学院,辽宁 沈阳 110169)
2
(华为技术有限公司 成都研究所,四川 成都 610000)
通讯作者: 王斌, E-mail: binwang@mail.neu.edu.cn
摘 要: 数据库索引是关系数据库系统实现快速查询的有效方式之一.智能索引调优技术可以有效地对数据库实
例进行索引调节,从而保持数据库高效的查询性能.现有的方法大多利用了数据库实例的查询日志,它们先从查询日
志中得到候选索引,再利用人工设计的模型选择索引,从而调节索引.然而,从查询日志中产生出的候选索引可能并
未实际存在于数据库实例中,因此导致这些方法不能有效地估计这类索引对于查询的优化效果.首先,设计并实现了
一种面向关系数据库的智能索引调优系统;其次,提出了一种利用机器学习方法来构造索引的量化模型,根据该模
型,可以准确地对索引的查询优化效果进行估计;接着设计了一种高效的最优索引选择算法,实现快速地从候选索引
空间中选择满足给定大小约束的最优的索引组合;最后,通过实验测试不同场景下智能索引调优系统的调优性能.实
验结果表明,所提出的技术可以在不同的场景下有效地对索引进行优化,从而实现数据库系统查询性能的提升.
关键词: 索引调优;机器学习;数据库索引;优化模型;关系数据库
中图法分类号: TP18
中文引用格式: 邱涛,王斌,舒昭维,赵智博,宋子文,钟延辉.面向关系数据库的智能索引调优方法.软件学报,2020,31(3):
634−647. http://www.jos.org.cn/1000-9825/5906.htm
英文引用格式: Qiu T, Wang B, Shu ZW, Zhao ZB, Song ZW, Zhong YH. Intelligent index tuning approach for relational
databases. Ruan Jian Xu e Bao/Jou rnal of Software, 2020,3 1(3):634−647 (in Chinese). http://www.jos.org.cn/1000-9825/5906.htm
Intelligent In dex Tuning Approach for Relational Databases
QIU Tao
1
, WANG Bin
1
, SHU Zhao-Wei
1
, ZHAO Zhi-Bo
1
, SONG Zi-Wen
1
, ZHONG Yan-Hui
2
1
(School of Computer Science and Engineering, Northeastern University, Shenyang 110169, China)
2
(Chengdu Research Institute, Huawei Technology Co. Ltd., Chengdu 610000, Ch ina)
Abstra ct : Indexing is on e of th e most effective techniques for r elational databases to achi eve fast querypro cessing. The intelligent index
tuning technique can effectively adjust the index of the database instance to obtain efficient query performance. Most of the existing
methods utilize the query log to generate candidate indices, and then use the artificially designed models to select indices, thereby the
indices are adjusted. However, the candidate indices generated fro m the query log may not exist in the database instance, so they cannot
precisely estimate the effects of such indices on the query processing. This study first designs and implements an intelligent index tuning
system for the relational database. Secondly, it proposes a learning-based method to model the effects of indices for query processing,
accordingly, the query optimization effect of an index can be accurately estimated when selecting optimized indices. Then, an efficient
∗ 基金项目: 国家重点研发计划(2018YFB1700404); 国家自然科学基金(U1736104, 61572122, 61532021); 中央高校基本科研专
项资金(N171602003); CCF-华为数据库创新研究计划(CCF-Huawei DBIR2019009B)
Foundation item: National Key Research and Development Program of China (2018YFB1700404); National Natural Science
Foundation of China (U1736104, 61572122, 61532021); Fundamental Research Funds for the Central Universities (N171602003);
CCF-Huawei Database System Innovation Research Plan (CCF- Huawei DBIR2019009B)
本文由人工智能赋能的数据管理、分析与系统专刊特约编辑李战怀教授、于戈教授和杨晓春教授推荐.
收稿时间: 2019-07-20; 修改时间: 2019-09-10; 采用时间: 2019-11-25; jos 在线出版时间: 2020-01-10
CNKI 网络优先出版: 2020-01-10 13:34:38, http://kns.cnki.net/kcms/d etail/11.2560.TP.20200110.1334.007.html
相关文档
评论