<p>With the rapid evolution of big data applications, distributed databases have become critical infrastructure for large-scale data processing, and multi-replica query scenarios are increasingly common. However, existing distributed query optimizers often neglect inter-node communication overhead, failing to capture the combined impact of server processing, disk I/O, and network latency. This oversight hinders the generation of globally optimal query execution plans. Meanwhile, while deep reinforcement learning (DRL)-based optimizers have shown promise in centralized environments, they face severe challenges in distributed environments due to an expanded plan search space and latency uncertainty arising from data distribution and replica management. To address these challenges, we propose LORD, a learned distributed database query optimizer with exploration space adaptive decay search strategy. LORD introduces a communication-aware multi-replica scheduling strategy to reduce query latency, as well as an exploration space adaptive decay search strategy that transitions from broad exploration to fine-grained tuning, thus improving both efficiency and plan quality. Experiments on JOB, TPC-DS, and STACK benchmarks show that LORD achieves 10.27<InlineEquation ID="IEq1"> <EquationSource Format="TEX">\(\times\)</EquationSource> </InlineEquation>, 1.44<InlineEquation ID="IEq2"> <EquationSource Format="TEX">\(\times\)</EquationSource> </InlineEquation>, and 2.63<InlineEquation ID="IEq3"> <EquationSource Format="TEX">\(\times\)</EquationSource> </InlineEquation> speedups over PostgreSQL, respectively. These results highlight LORD’s effectiveness in optimizing distributed queries under high-concurrency, multi-replica conditions.</p>

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

LORD: a learned distributed database query optimizer with exploration space adaptive decay search strategy

  • Lei Jiang,
  • Wei Duan,
  • Jing Liao,
  • Chengyu Luo

摘要

With the rapid evolution of big data applications, distributed databases have become critical infrastructure for large-scale data processing, and multi-replica query scenarios are increasingly common. However, existing distributed query optimizers often neglect inter-node communication overhead, failing to capture the combined impact of server processing, disk I/O, and network latency. This oversight hinders the generation of globally optimal query execution plans. Meanwhile, while deep reinforcement learning (DRL)-based optimizers have shown promise in centralized environments, they face severe challenges in distributed environments due to an expanded plan search space and latency uncertainty arising from data distribution and replica management. To address these challenges, we propose LORD, a learned distributed database query optimizer with exploration space adaptive decay search strategy. LORD introduces a communication-aware multi-replica scheduling strategy to reduce query latency, as well as an exploration space adaptive decay search strategy that transitions from broad exploration to fine-grained tuning, thus improving both efficiency and plan quality. Experiments on JOB, TPC-DS, and STACK benchmarks show that LORD achieves 10.27 \(\times\) , 1.44 \(\times\) , and 2.63 \(\times\) speedups over PostgreSQL, respectively. These results highlight LORD’s effectiveness in optimizing distributed queries under high-concurrency, multi-replica conditions.