错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

WorthyPar: A Workload-Aware Data Hybrid Partitioning Advisor with Deep Reinforcement Learning

  • Shuangshuang Cui,
  • Hongzhi Wang,
  • Jinghan Lin,
  • Xiaoou Ding,
  • Donghua Yang

摘要

Data partitioning physically divides tables or databases to minimize I/O and maximize query processing performance. Designing subtle partitioning strategies for OLAP workloads is an important and challenging task. However, existing workload-aware partitioning strategies lack flexibility and fine-grained partitioning strategies lack adaptability. To address these limitations, we propose WorthyPar. To our knowledge, this is the first attempt to achieve self-driving hybrid partitioning relying on DRL. Specifically, we first demonstrate that the hybrid partitioning problem is NP-hard and formulate it as a Markov Decision Process (MDP) to train an automatic partitioning advisor. Subsequently, we propose a workload prediction model to forecast future workloads, and a performance analysis model to assess the performance of hybrid partitioning strategies without actual partitioning in the database. Extensive experiments demonstrate that WorthyPar can achieve up to 75% reduction in time.