首页> 外国专利> BOUNDED QUERY REWRITING USING VIEWS

BOUNDED QUERY REWRITING USING VIEWS

机译:使用视图重写绑定查询

摘要

A mechanism for rewriting a bounded query onto a view is disclosed. A query, access constraints, and cached view(s) are obtained. The cached view(s) contain results of the query as applied to a dataset stored in a database. A query rewriting plan is generated by adding a fetch from query operation to the plan when a rewritten query variable can be fetched from a query constant. A fetch from database operation is added to the plan when a rewritten query variable can be fetched as a query variable that obtains bounded data from the database. An access view operation is added to the plan when a rewritten query variable can be fetched from the cached view. The query rewriting plan is executed to fetch retrieved data. The query is executed on the retrieved data to determine updated results to the query without reapplying the query to the dataset.
机译:公开了一种用于将有界查询重写到视图上的机制。获取查询,访问约束和缓存的视图。缓存的视图包含应用于数据库中存储的数据集的查询结果。当可以从查询常量中获取重写的查询变量时,通过将查询操作中的提取添加到计划中来生成查询重写计划。当可以将重写的查询变量作为从数据库获取有界数据的查询变量进行提取时,将从数据库操作中获取数据。当可以从缓存的视图中获取重写的查询变量时,会将访问视图操作添加到计划中。执行查询重写计划以获取检索到的数据。对检索到的数据执行查询,以确定查询的更新结果,而无需将查询重新应用于数据集。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号