首页> 外文期刊>ACM transactions on database systems >SkinnerDB: Regret-bounded Query Evaluation via Reinforcement Learning
【24h】

SkinnerDB: Regret-bounded Query Evaluation via Reinforcement Learning

机译:SkinnerDB:通过加强学习遗憾的查询评估

获取原文
获取原文并翻译 | 示例
       

摘要

SkinnerDB uses reinforcement learning for reliable join ordering, exploiting an adaptive processing engine with specialized join algorithms and data structures. It maintains no data statistics and uses no cost or cardinality models. Also, it uses no training workloads nor does it try to link the current query to seemingly similar queries in the past. Instead, it uses reinforcement learning to learn optimal join orders from scratch during the execution of the current query. To that purpose, it divides the execution of a query into many small time slices. Different join orders are tried in different time slices. SkinnerDB merges result tuples generated according to different join orders until a complete query result is obtained. By measuring execution progress per time slice, it identifies promising join orders as execution proceeds.Along with SkinnerDB, we introduce a new quality criterion for query execution strategies. We upperbound expected execution cost regret, i.e., the expected amount of execution cost wasted due to sub-optimal join order choices. SkinnerDB features multiple execution strategies that are optimized for that criterion. Some of them can be executed on top of existing database systems. For maximal performance, we introduce a customized execution engine, facilitating fast join order switching via specialized multi-way join algorithms and tuple representations.We experimentally compare SkinnerDB's performance against various baselines, including MonetDB, Postgres, and adaptive processing methods. We consider various benchmarks, including the join order benchmark, TPC-H, and JCC-H, as well as benchmark variants with user-defined functions. Overall, the overheads of reliable join ordering are negligible compared to the performance impact of the occasional, catastrophic join order choice.
机译:SkinnerDB使用强化学习进行可靠的连接订购,利用具有专门的连接算法和数据结构的自适应处理引擎。它没有维护数据统计信息,不使用成本或基数模型。此外,它不使用培训工作负载,也不尝试将当前查询链接到过去看似类似的查询。相反,它使用加强学习在执行当前查询期间从划痕中学习最佳连接订单。为此目的,它将查询的执行划分为许多小时间片。不同的连接订单在不同的时间片中尝试。 SkinnerDB合并根据不同连接订单生成的结果元组,直到获得完整的查询结果。通过每次切片测量执行进度,它识别有前途的连接订单作为执行收益。使用SkinnerDB,我们向查询执行策略引入了新的质量标准。我们上行预期执行成本后悔,即,由于子最优加入命令选择,浪费的预期执行成本。 SkinnerdB具有针对该标准进行优化的多个执行策略。其中一些可以在现有数据库系统的顶部执行。对于最大性能,我们引入了自定义的执行引擎,通过专门的多路连接算法和元组表示来介绍自定义的执行引擎。我们通过专业地比较SkinnerDB对各种基线的性能,包括MonetDB,Postgres和自适应处理方法。我们考虑各种基准测试,包括连接阶基准测试,TPC-H和JCC-H,以及具有用户定义功能的基准变体。总的来说,与偶尔灾难性加入订单选择的性能影响相比,可靠的连接订单的开销可以忽略不计。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号