计算机工程与应用 ›› 2008, Vol. 44 ›› Issue (22): 159-161.DOI: 10.3778/j.issn.1002-8331.2008.22.047

• 数据库、信号与信息处理 • 上一篇    下一篇

自适应的数据库查询缓存

邱林锋1,2,曹学成1,2,柏文阳1,2   

  1. 1.南京大学 软件新技术国家重点实验室,南京 210093
    2.南京大学 计算机科学与技术系,南京 210093
  • 收稿日期:2007-10-09 修回日期:2008-01-02 出版日期:2008-07-11 发布日期:2008-07-11
  • 通讯作者: 邱林锋

Adaptive cache for database query

QIU Lin-feng1,2,CAO Xue-cheng1,2,BAI Wen-yang1,2   

  1. 1.National Key Laboratory for Novel Software Technology,Nanjing University,Nanjing 210093,China
    2.Department of Computer Science and Technology,Nanjing University,Nanjing 210093,China
  • Received:2007-10-09 Revised:2008-01-02 Online:2008-07-11 Published:2008-07-11
  • Contact: QIU Lin-feng

摘要: 传统的缓存采取较为机械的管理方法,不能随数据库运行的动态信息调整自身参数以得到更优的性能。数据库语义缓存能够让数据库“理解”查询语义,可以为数据库的动态调节提供信息。而查询缓存是语义缓存的一种,在 SQL解析与查询执行之间,通过研究查询缓存的自主管理来提高数据库的查询性能。首先介绍了数据库常用的语义缓存与自主计算,然后对查询缓存进行了形式化定义,并提出了自适应的查询缓存模型。最后在MySQL的查询缓存上进行了实验,得到了较好的效果。

关键词: 数据库, 自主计算, 语义缓存, 查询缓存

Abstract: In tradition,databases manage their caches in a relatively mechanical way and the cache can’t tune itself in dynamic environments.Semantic caching can make the database understand the query and provide the information needed in the dynamic tuning.Query cache is a kind of the semantic cache,between the SQL parser and the query executor.This paper does some research on the self-management of the database query cache,in order to improve the database performance.First some concepts of the database cache and the autonomic computing are introduced.Then,the formal definition of the query cache and the adaptive model are given.The experiment is done based on MySQL and the result is obvious.

Key words: database, autonomic computing, semantic cache, query cache