基于自适应高斯混合模型的数据库基数估计方法OA
Database cardinality estimation method based on adaptive Gaussian mixture model
基数估计是数据库查询优化的关键环节,其准确性直接影响查询计划的执行效率.基于深度自回归模型的基数估计器在以往的研究中已展现出卓越的准确性,而在处理大值域连续属性列时,模型难以捕捉数据分布规律,性能严重下降.针对这些挑战,提出一种基于自适应高斯混合模型的新型基数估计器AGCard.首先,动态调整高斯组件的数量和参数,自适应拟合连续属性列的数据分布,降低域规模;其次,采用偏差校正算法修正渐进采样过程所引入的估计偏差,同时避免了额外的计算开销.在WISDM等三个真实世界数据集上的实验结果表明,所提方法在估计准确性、推理延迟和存储开销等方面均优于现有主流基线方法,证明了自适应高斯混合模型和偏差校正算法的有效性.
Cardinality estimation is a critical component of database query optimization,where its accuracy directly impacts the execution efficiency of query plans.Deep autoregressive model-based cardinality estimators have demonstrated remarkable accuracy in prior studies.However,they struggle to capture data distribution patterns when handling large-domain continuous attributes,which lead to significant performance degradation.To address these challenges,this paper proposed a novel cardi-nality estimator based on an adaptive Gaussian mixture model,called AGCard.It first dynamically adjusted the number and parameters of Gaussian components to adaptively fit the data distribution of continuous attributes,thereby reducing the domain scale.Subsequently,AGCard employed a bias correction algorithm to compensate for the estimation deviations introduced by the progressive sampling process while avoiding additional computational overhead.Extensive experiments on three real-world datasets(including WISDM)demonstrate that the proposed method outperforms existing mainstream baselines in terms of esti-mation accuracy,inference latency,and storage overhead.The results confirm the effectiveness of the adaptive Gaussian mix-ture model and the bias correction algorithm.
李昊;刘梦赤;邹瑞基;刘明凯
华南师范大学计算机学院,广州 510000华南师范大学计算机学院,广州 510000华南师范大学计算机学院,广州 510000华南师范大学计算机学院,广州 510000
信息技术与安全科学
查询优化基数估计自适应高斯混合模型自回归模型偏差校正
query optimizationcardinality estimationadaptive Gaussian mixture modelautoregressive modelbias correc-tion
《计算机应用研究》 2026 (4)
1171-1179,9
国家自然科学基金资助项目(61672389)广州市大数据智能教育重点实验室(201905010009)
评论