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

Rapidash:基于快速验证的高效约束发现

Rapidash: Efficient Constraint Discovery via Rapid Verification

Zifan Liu, Shaleen Deep, Anna Fariha, Fotis Psallidas, Ashish Tiwari, Avrilia Floratou

AI总结:

本文提出Rapidash框架,通过建立正交范围搜索与DC验证的联系,设计近线性时间的精确DC验证算法和随时可用的DC发现算法,在大规模数据集上实现最高40倍加速。

摘要:

否定约束(Denial Constraint,DC)是一种成熟的形式化方法,能够刻画广泛常见的完整性约束,包括候选键、函数依赖和排序约束等。鉴于其重要性,数据库社区对实现精确 DC 的快速验证与发现产生了大量研究兴趣。尽管该领域已取得显著进展,先前工作在面对大规模数据集时仍表现出明显局限。当前最先进的精确 DC 验证算法在最坏情况下相对于数据集行数具有二次时间复杂度。在 DC 发现方面,现有方法依赖两阶段算法,首先进行代价高昂的数据结构构建阶段,即使对于仅包含数百万行的数据集,该阶段也常常需要数小时才能完成。因此,用户在这一漫长的构建阶段结束之前无法获得关于其数据集上成立的 DC 的任何信息。本文提出 Rapidash,一个用于 DC 验证与发现的综合框架。我们的工作具有双重贡献。第一,我们建立了正交范围搜索与 DC 验证之间的联系,提出一种新颖的精确 DC 验证算法,其时间复杂度接近线性,相较先前工作在理论上有所改进。第二,我们提出一种随时可用的(anytime)DC 发现算法,利用我们新颖的验证算法逐步向用户提供 DC,从而消除了先前工作中耗时的构建阶段。为验证算法的有效性,我们在四个大规模生产数据集上进行了广泛评估。结果表明,我们的 DC 验证算法相比最先进方法实现了最高 40 倍的性能提升。

英文摘要:

Denial Constraint (DC) is a well-established formalism that captures a wide range of integrity constraints commonly encountered, including candidate keys, functional dependencies, and ordering constraints, among others. Given their significance, there has been considerable research interest in achieving fast verification and discovery of exact DCs within the database community. Despite the significant advancements in the field, prior work exhibits notable limitations when confronted with large-scale datasets. The current state-of-the-art exact DC verification algorithm demonstrates a quadratic (worst-case) time complexity relative to the dataset's number of rows. In the context of DC discovery, existing methodologies rely on a two-step algorithm that commences with an expensive data structure-building phase, often requiring hours to complete even for datasets containing only a few million rows. Consequently, users are left without any insights into the DCs that hold on their dataset until this lengthy building phase concludes. In this paper, we introduce Rapidash, a comprehensive framework for DC verification and discovery. Our work makes a dual contribution. First, we establish a connection between orthogonal range search and DC verification. We introduce a novel exact DC verification algorithm that demonstrates near-linear time complexity, representing a theoretical improvement over prior work. Second, we propose an anytime DC discovery algorithm that leverages our novel verification algorithm to gradually provide DCs to users, eliminating the need for the time-intensive building phase observed in prior work. To validate the effectiveness of our algorithms, we conduct extensive evaluations on four large-scale production datasets. Our results reveal that our DC verification algorithm achieves up to 40 times faster performance compared to state-of-the-art approaches.

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

↑