首页> 外国专利> Optimized collection of just-in-time statistics for database query optimization

Optimized collection of just-in-time statistics for database query optimization

机译:即时统计信息的优化集合,用于数据库查询优化

摘要

A system and method are provided for updating database statistics for use in generating query execution plans. A first query for a database is received, for example by a compiler, and the compiler accesses statistics associated with the first query for optimizing a query execution plan for the first query. The statistics may be accessed from a first cache. If the statistics retrieved from the first cache are determined to be stale, the system obtains updated statistics and may store them in a temporary cache. The stale statistics in the first cache are marked as invalid. Existing queries using the first cache may continue to use the first cache, while new queries may be provided with updated statistics.
机译:提供了一种用于更新数据库统计信息以用于生成查询执行计划的系统和方法。例如,通过编译器接收对数据库的第一查询,并且编译器访问与第一查询相关联的统计信息,以优化针对第一查询的查询执行计划。可以从第一高速缓存访​​问统计信息。如果确定从第一高速缓存检索到的统计信息是陈旧的,则系统获取更新的统计信息并将其存储在临时高速缓存中。第一个缓存中的陈旧统计信息被标记为无效。使用第一高速缓存的现有查询可以继续使用第一高速缓存,同时可以向新查询提供更新的统计信息。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号