计算机应用 ›› 2013, Vol. 33 ›› Issue (11): 3267-3270.

• 计算机软件技术 • 上一篇    下一篇

移动数据库缓存模型研究

翁唱玲1,杨清2   

  1. 1. 湖南科技大学 计算机科学与工程学院,湖南 湘潭 411201
    2. 湖南科技大学 网络中心,湖南 湘潭 411201
  • 收稿日期:2013-05-16 修回日期:2013-08-07 出版日期:2013-11-01 发布日期:2013-12-04
  • 通讯作者: 杨清
  • 作者简介:翁唱玲(1987-),女,湖南湘潭人,硕士研究生,主要研究方向:移动数据库;杨清(1969-),男,湖南益阳人,教授,博士,主要研究方向:无线传感器。
  • 基金资助:
    湖南省教育厅重点科学研究项目;湖南省科技计划项目

Research on cache model in mobile database

WENG Changling1,YANG Qing2   

  1. 1. School of Computer Science and Engineering,Hunan University of Science and Technology, Xiangtan Hunan 411201, China;
    2. Network Center, Hunan University of Science and Technology, Xiangtan Hunan 411201, China
  • Received:2013-05-16 Revised:2013-08-07 Online:2013-12-04 Published:2013-11-01
  • Contact: YANG Qing

摘要: 针对移动数据库系统性能有待提高的问题,提出了一种移动数据库缓存模型。采用基于消息摘要的同步算法,通过比较移动客户端与服务器消息摘要表中的消息摘要值,完成缓存同步,维护移动客户端缓存与服务器数据的一致性;该模型还考虑了数据的时效性与事务的优先级,设计了一种基于价值函数的缓存替换算法。实验结果表明,随着缓存数据个数的增加,所提算法的缓存命中率高于最近最少使用(LRU)和LA2U算法,同时随着访问频率的增加,事务的重启率低于LRU和LA2U,有效提高了移动数据库缓存的性能。

关键词: 移动数据库, 缓存同步, 缓存替换, 一致性, 数据有效性

Abstract: To improve the performance of mobile database system, a cache model was proposed for mobile database. A kind of synchronization algorithm based on message digest was used in this model. By comparing the value of message digest in mobile client and server, the algorithm completed the cache synchronization, and maintained the consistency of mobile client cache and the data in server. The timeliness of the data and the priority of the transaction were considered in this model. A cache replacement algorithm based on cost function was designed. The experimental results show that the cache hit rate of the proposed algorithm is higher than Least Recently Used (LRU) and Least Access-to-Update Ratio (LA2U) algorithm along with the increase of the number of cache data. At the same time, the restart rate of transaction is lower than LRU and LA2U while the frequency of access increases. The performance of the cache of mobile database is improved.

Key words: mobile database, cache synchronization, cache replacement, coherence, data validity

中图分类号: