基于深度强化学习的抽象视图物化
Opportunistic View Materialization with Deep Reinforcement Learning
摘要:
仔细选择物化视图可以大大提高OLAP工作负载的性能。我们研究使用深度强化学习来学习自适应视图物化和驱逐策略。我们的见解是,这种选择策略可以有效地用异步RL算法进行训练,该算法在系统空闲时间内运行配对的反事实实验,以评估持久化某些视图的增量价值。这样的策略避免了对准确的基数估计或手工设计的评分算法的需要。我们专注于内连接视图和建模效果的主存,OLAP系统。我们的研究原型系统,称为DQM,在SparkSQL中实现,我们在几个工作负载上进行了实验,包括Join Order Benchmark和TPC-DS工作负载。结果表明:(1)当工作负载不满足其假设或存在时间效应(如周期维护)时,DQM可以优于启发式,(2)即使有学习成本,DQM也更适应工作负载的变化,(3)DQM广泛适用于不同的工作负载和偏斜。
英文摘要:
Carefully selected materialized views can greatly improve the performance of OLAP workloads. We study using deep reinforcement learning to learn adaptive view materialization and eviction policies. Our insight is that such selection policies can be effectively trained with an asynchronous RL algorithm, that runs paired counter-factual experiments during system idle times to evaluate the incremental value of persisting certain views. Such a strategy obviates the need for accurate cardinality estimation or hand-designed scoring heuristics. We focus on inner-join views and modeling effects in a main-memory, OLAP system. Our research prototype system, called DQM, is implemented in SparkSQL and we experiment on several workloads including the Join Order Benchmark and the TPC-DS workload. Results suggest that: (1) DQM can outperform heuristic when their assumptions are not satisfied by the workload or there are temporal effects like period maintenance, (2) even with the cost of learning, DQM is more adaptive to changes in the workload, and (3) DQM is broadly applicable to different workloads and skews.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。