首页 | 本学科首页   官方微博 | 高级检索  
     

基于MySql多表分页查询优化技术
引用本文:韩兵,王照清,廖联军.基于MySql多表分页查询优化技术[J].计算机系统应用,2016,25(8):171-175.
作者姓名:韩兵  王照清  廖联军
作者单位:北方工业大学 计算机学院, 北京 100144,北方工业大学 计算机学院, 北京 100144,北方工业大学 计算机学院, 北京 100144
基金项目:北京市自然科学基金(4131001);北京市属高等学校创新团队建设与教师职业发展计划(IDHT20130502)
摘    要:针对MySql在多表分页查询中由于数据量大导致效率无法满足系统要求,本文经过深入研究和分析发现,常用的表union操作需要耗费大量的时间,成为影响数据库访问性能提高的关键因素. 为了提升数据库类似操作的查询效率和用户体验,提出一种新的多表查询算法,该算法通过精确定位分表的技术避免多表的union操作以及使用合理的索引来提高查询效率. 通过大量的实验证实,优化后的查询算法在实现大数据量的多表union分页查询操作中效率有明显的提高.

关 键 词:MySql  查询  优化  索引
收稿时间:2015/12/20 0:00:00
修稿时间:2016/1/18 0:00:00

Multi-Table Paging Query Optimization Technology in MySql
HAN Bing,WANG Zhao-Qing and LIAO Lian-Jun.Multi-Table Paging Query Optimization Technology in MySql[J].Computer Systems& Applications,2016,25(8):171-175.
Authors:HAN Bing  WANG Zhao-Qing and LIAO Lian-Jun
Affiliation:Computer Institute, North China University of Technology, Beijing 100144, China,Computer Institute, North China University of Technology, Beijing 100144, China and Computer Institute, North China University of Technology, Beijing 100144, China
Abstract:Under large amount of data the union operation makes data paging very slow, how to improve the performance of data paging efficiency becomes an import issue for MySql. This paper proposes a new data paging algorithm from analysis of union operation in MySql data paging method''s advantages and disadvantages, and the key factors affects the speed of the data paging. By avoiding union operation in multi-table query and using indexes it improves query efficiency and reasonable. The experimental results confirms that the optimized query methods in pagination operations could significantly improve the speed.
Keywords:MySql  query  optimization  index
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号