arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.21237cs.DB
收藏

提前维度坍缩与基于张量的执行路径用于成本驱动数据库系统中的高维关系操作

Premature Dimensional Collapse and Tensor-based Execution Paths for High-Dimensional Relational Operations in Cost-Based Database Systems

Independent Researcher Daegu, Republic of Korea

Il-Sun Chang

AI总结:

本文提出基于张量的执行路径,通过延迟中间表示线性化和结构化布局,解决高维关系操作中的执行不稳定和尾延迟问题,提升数据库系统稳定性。

摘要:

现代基于成本的数据库管理系统在高维关系操作触发内存 regime 转换(如哈希表溢出和外部材料化)时,经常表现出执行不稳定性和尾延迟放大现象。我们识别出一种结构性失效模式,即在内存压力下中间表示提前线性化,导致不成比例的I/O放大和相变式延迟行为。为缓解这一问题,我们提出了一种基于张量的执行路径,通过延迟提前线性化和通过后期材料化和结构化中间布局保持高维局部性。使用修改后的PostgreSQL原型和受控微基准测试,我们展示了在受限内存设置(例如work_mem=1MB)下,传统执行会溢出数百兆字节并超过多秒P99延迟,而所提出的路径保持稳定执行并将P99延迟降低到亚秒级别。我们的结果表明,表示时间是执行稳定性的重要设计变量,补充了传统优化努力,这些努力集中在基数估计和操作吞吐量上。

英文摘要:

Modern cost-based DBMSs frequently exhibit execution instability and tail-latency amplification when high-dimensional relational operations trigger memory-regime transitions such as hash-table spilling and external materialization. We identify a structural failure mode in which intermediate representations are prematurely linearized under memory pressure, causing disproportionate I/O amplification and phase-transition-like latency behavior. To mitigate this, we propose a tensor-based execution path that delays premature linearization and preserves higher-dimensional locality through late materialization and structured intermediate layouts. Using a modified PostgreSQL-based prototype and controlled microbenchmarks, we show that under constrained memory settings (e.g., work_mem=1MB) conventional execution can spill hundreds of megabytes and exceed multi-second P99 latency, while the proposed path maintains stable execution and reduces P99 latency to sub-second levels. Our results suggest that representation timing is a first-class design variable for execution stability, complementing traditional optimization efforts focused on cardinality estimation and operator throughput.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑