首页> 外国专利> Dynamic rebuilding of query execution trees and reselection of query execution operators

Dynamic rebuilding of query execution trees and reselection of query execution operators

机译:动态重建查询执行树和重新选择查询执行运算符

摘要

A database engine receives a query and parses the query to form a first intermediate query. The engine compiles the first intermediate query to form a first executable plan that includes in-memory operators that execute within memory without swapping to secondary memory. While executing a first in-memory operator in the first executable plan, the engine detects insufficient memory and aborts execution of the first executable plan. The engine optimizes the first intermediate query to form a second intermediate query, and compiles the second intermediate query to form a second executable plan. The second plan includes spooling operators that execute within fixed memory budgets and are configured to swap to the secondary memory when needed. The engine executes the second executable plan, including the spooling operators, to retrieve results from the database that are responsive to the query. The engine then returns the retrieved results.
机译:数据库引擎接收查询并解析该查询以形成第一中间查询。引擎编译第一中间查询以形成第一可执行计划,该第一可执行计划包括在内存中执行而无需交换到辅助内存的内存中运算符。当在第一可执行计划中执行第一内存中运算符时,引擎检测到内存不足并中止第一可执行计划的执行。引擎优化第一中间查询以形成第二中间查询,并编译第二中间查询以形成第二可执行计划。第二个计划包括后台处理运算符,它们在固定的内存预算内执行,并配置为在需要时交换到辅助内存。引擎执行第二个可执行计划,包括假脱机运算符,以从数据库中检索响应查询的结果。然后,引擎返回检索到的结果。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号