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

MongoDB分页技术改进与优化
引用本文:王振辉,王振铎,王静婷.MongoDB分页技术改进与优化[J].湖南农业大学学报(自然科学版),2015(3):127-130.
作者姓名:王振辉  王振铎  王静婷
作者单位:(1.西安翻译学院 工程技术学院,陕西 西安710105;2.西安思源学院 电子信息工程学院,陕西 西安710038)
摘    要:随着数据量的不断增加,使用MongoDB数据库内置的skip和limit组合分页算法效率低下,成为影响数据库访问性能提升的重要问题。从分析影响分页查询速度的关键因素入手,提出细粒度查询改进算法和where-limit算法。通过理论推导和与原算法的实验结果的比较,分析了两种新算法使用场景和优缺点。将两种算法应用于实际Web2.0日志系统应用中,取得了较好的效果。最后,对影响数据分页的其它因素进行了探讨,以更好的提高Web应用性能。

关 键 词:MongoDB  数据分页  索引  查询

Improvement and Optimization on MongoDB Paging Technology
WANG Zhen-hui,WANG Zhen-duo,WANG Jing-ting.Improvement and Optimization on MongoDB Paging Technology[J].Journal of Hunan Agricultural University,2015(3):127-130.
Authors:WANG Zhen-hui  WANG Zhen-duo  WANG Jing-ting
Institution:(1.School of Technology and Engineering, Xi''an Fanyi University, Xi''an,Shanxi710105,China;2. School of Electronic and Information Engineering, Xi''an Siyuan University, Xi''an,Shanxi710038,China)
Abstract:With the increasing amount of data, the efficiency of using the built-in mongo database skip and limit combination paging algorithm is low, which has become an important issue affecting the performance of database access. From the analysis on the key factors affecting the speed paging query, this paper proposed the fine-grained query improved algorithm and where-limit algorithm. Through theoretical deduction and comparison of the experimental results with the original algorithm, this paper analyzed the usage scenarios and the advantages and disadvantages of two kinds of new algorithm. The two algorithms were applied to practical application of Web2.0 logging system, and achieved good results. Finally, other factors affecting the data pages were discussed in order to improve Web application performance better.
Keywords:MongoDB  data paging  index  query
点击此处可从《湖南农业大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《湖南农业大学学报(自然科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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