首页> 外国专利> Database system with methods for optimizing query performance with a buffer manager

Database system with methods for optimizing query performance with a buffer manager

机译:具有使用缓冲区管理器优化查询性能的方法的数据库系统

摘要

Database system and methods are described for improving execution speed of database queries (e.g., for transaction processing and for decision support) by optimizing use of buffer caches. The system includes an Optimizer for formulating an optimal strategy for a given query. More particularly, the Optimizer communicates with a Buffer Manager before it formulates the query plan. For instance, the Optimizer may query the Buffer Manager for the purpose of determining whether the object of interest (e.g., table or index to be scanned) exists in its own buffer cache (i.e., whether it has been bound to a particular named cache) . If the object exists in its own cache, the Optimizer may inquire as to how much of the cache (i.e., how much memory) the object requires, together with the optimal I/O size for the cache (e.g., 16K blocks). Based on this information, the Optimizer formulates a query strategy or plan with "hints," which are ultimately passed to the Cache or Buffer Manager. By formulating "hints" for the Buffer Manager at the level of the Optimizer, knowledge of the query is, in effect, passed down to the Buffer Manager so that it may service the query using an optimal caching strategy--one based on the dynamics of the query itself. Based on the "hints" received from the Optimizer, the Buffer Manager can fine tune input/output (i.e., cache management) for the query.
机译:描述了用于通过优化缓冲区高速缓存的使用来提高数据库查询的执行速度(例如,用于事务处理和用于决策支持)的数据库系统和方法。该系统包括用于为给定查询制定最佳策略的优化器。更具体地说,优化器在制定查询计划之前与缓冲区管理器进行通信。例如,优化器可以查询缓冲区管理器,以确定目的对象(例如,要扫描的表或索引)是否存在于其自己的缓冲区高速缓存中(即,是否已绑定到特定的命名高速缓存) 。如果对象存在于其自己的高速缓存中,则优化器可以查询该对象需要多少高速缓存(即,多少内存),以及高速缓存的最佳I / O大小(例如16K块)。根据此信息,优化程序将制定带有“提示”的查询策略或计划,最终将这些提示或计划传递给高速缓存或缓冲区管理器。通过在优化程序级别为缓冲区管理器制定“提示”,查询的知识实际上将传递给缓冲区管理器,以便它可以使用最佳缓存策略(基于动态的一种)为查询提供服务查询本身。基于从优化器接收到的“提示”,缓冲区管理器可以微调查询的输入/输出(即缓存管理)。

著录项

  • 公开/公告号US5812996A

    专利类型

  • 公开/公告日1998-09-22

    原文格式PDF

  • 申请/专利权人 SYBASE INC.;

    申请/专利号US19950554126

  • 发明设计人 DAVID S. RUBIN;BRIJESH AGARWAL;

    申请日1995-11-06

  • 分类号G06F17/30;

  • 国家 US

  • 入库时间 2022-08-22 02:38:35

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号