SkinnerDB:基于强化学习的后悔有界查询评估
SkinnerDB: Regret-Bounded Query Evaluation via Reinforcement Learning
摘要:
SkinnerDB是为可靠的连接排序而设计的。它不维护数据统计,也不使用成本或基数模型。相反,它使用强化学习在执行当前查询期间动态学习最佳连接顺序。为此,我们将查询的执行划分为许多小的时间片。在不同的时间片中尝试不同的连接顺序。我们合并根据不同连接顺序生成的结果元组,直到获得一个完整的结果。通过测量每个时间片的执行进度,我们确定有前途的连接顺序执行的进行。与SkinnerDB一起,我们为查询执行策略引入了一个新的质量标准。我们比较预期的执行成本对执行成本的最佳连接顺序。SkinnerDB具有针对该标准进行优化的多个执行策略。其中一些可以在现有的数据库系统上执行。为了最大限度地提高性能,我们引入了一个自定义的执行引擎,通过专门的多路连接算法和元组表示促进快速连接顺序切换。我们通过实验将SkinnerDB的性能与各种基线进行了比较,包括MonetDB,Postgres和自适应处理方法。我们考虑了各种基准测试,包括连接顺序基准测试和带有用户定义函数的TPC-H变体。总的来说,与偶尔的灾难性连接顺序选择的性能影响相比,可靠连接顺序的开销可以忽略不计。
英文摘要:
SkinnerDB is designed from the ground up for reliable join ordering. It maintains no data statistics and uses no cost or cardinality models. Instead, it uses reinforcement learning to learn optimal join orders on the fly, during the execution of the current query. To that purpose, we divide the execution of a query into many small time slices. Different join orders are tried in different time slices. We merge result tuples generated according to different join orders until a complete result is obtained. By measuring execution progress per time slice, we identify promising join orders as execution proceeds. Along with SkinnerDB, we introduce a new quality criterion for query execution strategies. We compare expected execution cost against execution cost for an optimal join order. 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 and TPC-H 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。