TraHist:面向轨迹数据的快速准确基数估计(扩展版)
TraHist: Fast and Accurate Cardinality Estimation for Trajectory Data (Extended Version)
AI总结:
针对轨迹数据基数估计中传统直方图因未考虑时空依赖导致高估的问题,提出TraHist方法,构建密度自适应矩形桶,大幅降低估计误差,同时保持高效查询与构建性能。
摘要:
基数估计是数据库系统查询优化的基础。基于直方图的估计器因简洁高效被广泛应用,但依赖以点为中心的划分,假设记录相互独立。该假设在轨迹数据中不成立,同一移动物体的记录存在强时空依赖,传统轴对齐直方图会将轨迹跨分区边界拆分,通过重复计数导致高估,此误差源于分区边界与轨迹诱导密度模式错位的结构局限。为此,我们提出TraHist,一种基于直方图的估计器,通过高效的基于网格的传播实现与密度对齐的划分。TraHist构建密度自适应矩形桶,在保持直方图效率的同时保留轨迹连续性和局部密度一致性。在大规模真实数据集上的实验表明,在轨迹拆分是估计误差主要来源的查询场景中,TraHist相比最强的竞争估计器将估计误差降低20倍以上,同时保持亚毫秒级查询延迟和有竞争力的构建成本。
英文摘要:
Cardinality estimation is fundamental for query optimization in database systems. Histogram-based estimators are widely used for their simplicity and efficiency but rely on point-centric partitioning that assumes record independence. This assumption breaks in trajectory data, where records from the same moving object show strong spatiotemporal dependencies. Conventional axis-aligned histograms therefore fragment trajectories across partition boundaries, leading to overestimation through duplicate counting. This error reflects a structural limitation of partition boundaries that are misaligned with trajectory-induced density patterns. To this end, we propose TraHist, a histogram-based estimator approximating density-aligned partitioning via efficient grid-based propagation. TraHist builds density-adaptive rectilinear buckets to preserve trajectory continuity and local density coherence while keeping histogram efficiency. Experiments on large-scale real-world datasets show that TraHist reduces estimation error by over 20x relative to the strongest competing estimator in query regimes where trajectory fragmentation is a dominant source of estimation error, while maintaining sub-millisecond query latency and competitive construction cost.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。