arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0003005cs.DB
收藏

不要丢弃你的中间结果,缓存它们

Don't Trash your Intermediate Results, Cache 'em

Prasan Roy, Krithi Ramamritham, S. Seshadri, Pradeep Shenoy, S. Sudarshan

摘要:

在数据仓库和数据集市系统中,由于查询的复杂性,查询通常需要很长时间才能执行。通过缓存先前查询的最终/中间结果,并使用它们来回答稍后的查询,可以大大提高查询的响应时间。在本文中,我们描述了一个高速缓存系统,称为国库,它结合了几个新的功能,包括优化意识的高速缓存维护和使用的高速缓存意识的优化。相比之下,在现有工作中,做出成本效益决策的模块是缓存管理器的一部分,并且独立于优化器工作,优化器本质上会重新考虑这些决策,同时找到查询的最佳计划。在我们的工作中,优化器为缓存管理器做出决策。此外,现有的方法要么局限于立方体(切片/点)查询,或缓存查询结果。另一方面,我们的工作是可扩展的,实际上提供了一个数据模型无关的框架和算法。我们的实验结果证明了我们的高速缓存管理技术的有效性,并表明,在广泛的参数范围内(a)国库的查询响应时间低于30%以上相比,表现最好的竞争对手,和(b)国库可以提供相同的响应时间作为其竞争对手,只有十分之一的高速缓存大小。

英文摘要:

In data warehouse and data mart systems, queries often take a long time to execute due to their complex nature. Query response times can be greatly improved by caching final/intermediate results of previous queries, and using them to answer later queries. In this paper we describe a caching system called Exchequer which incorporates several novel features including optimization aware cache maintenance and the use of a cache aware optimizer. In contrast, in existing work, the module that makes cost-benefit decisions is part of the cache manager and works independent of the optimizer which essentially reconsiders these decisions while finding the best plan for a query. In our work, the optimizer takes the decisions for the cache manager. Furthermore, existing approaches are either restricted to cube (slice/point) queries, or cache just the query results. On the other hand, our work is extens ible and in fact presents a data-model independent framework and algorithm. Our experimental results attest to the efficacy of our cache management techniques and show that over a wide range of parameters (a) Exchequer's query response times are lower by more than 30% compared to the best performing competitor, and (b) Exchequer can deliver the same response time as its competitor with just one tenth of the cache size.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑