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

RED2Hunt:一个用于清理使用代理键的操作型数据库的可执行框架

RED2Hunt: an Actionable Framework for Cleaning Operational Databases with Surrogate Keys

Mathilde Marcy, Jean-Marc Petit, Vasile-Marian Scuturici, Jocelyn Bonjour, Camille Fertel, Gerald Cavalier

AI总结:

本文提出RED2Hunt框架,利用人工唯一性和冗余剖面概念,在准线性时间内识别并清理使用代理键的关系数据库中的隐藏冗余,支持人在回路指导,已在实际和合成数据库上验证。

摘要:

代理键现已被数据库设计者广泛用于在SQL表中实现键。它们简单、易于理解,并且支持高效访问,尽管缺乏任何现实世界的语义含义。在这种背景下,复杂的冗余问题可能会出现,并且只要不影响构建在数据库之上的操作型应用程序,这些问题往往不会被注意到。当组织寻求利用数据科学时,这些问题变得明显,对分析项目的实施构成了重大挑战。本文基于实际应用,定义了人工唯一性的概念,并提出了RED2Hunt(关系数据库冗余猎手),一个人在回路中的框架,用于识别隐藏的冗余,并在问题发生时清理使用代理键实现的关系数据库。我们首先定义了人工唯一性这一核心且复杂的概念,然后提出了RED2Hunt框架来解决它。我们依赖于易于可视化的简单抽象,基于与某些关系相关联的冗余剖面和属性稳定性的概念。相当有趣的是,这些剖面可以在准线性时间内非常高效地计算。我们设计了不同的指标来指导领域专家,并提供了一个可操作的框架来生成新的无冗余数据库。所提出的框架已在PostgreSQL之上实现。从公开可用的IMDB数据库中,我们生成了合成数据库,实现了不同的冗余场景,并在其上测试了RED2Hunt以研究其可扩展性。RED2Hunt也已在使用代理键实现的操作型数据库上进行了测试。讨论了从这些实际应用中获得的经验教训。

英文摘要:

Surrogate keys are now extensively utilized by database designers to implement keys in SQL tables. They are straightforward, easy to understand, and enable efficient access, despite lacking any real-world semantic meaning. In this context, complex redundancy issues might emerge and often go unnoticed as long as they do not affect the operational applications built on top of the databases. These issues become evident when organizations seek to leverage data science, posing significant challenges to the implementation of analytical projects. This paper, grounded in real-world applications, defines the concept of artificial unicity and proposes RED2Hunt (RElational Databases REDundancy Hunting), a human-in-the-loop framework for identifying hidden redundancy and, if problems occur, cleaning relational databases implemented with surrogate keys. We first define the central and intricate notion of artificial unicity and then the RED2Hunt framework to address it. We rely on simple abstractions easy to visualize based on the so-called redundancy profile associated to some relations and the notion of attribute stability. Quite interestingly, those profiles can be computed very efficiently in quasi-linear time. We have devised different metrics to guide the domain expert and an actionable framework to generate new redundancy-free databases. The proposed framework was implemented on top of PostgreSQL. From the publicly available IMDB database, we have generated synthetic databases, implementing different redundancy scenarios, on which we tested RED2Hunt to study its scalability. RED2Hunt has also been tested on operational databases implemented with surrogate keys. Lessons learned from these real-life applications are discussed.

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

↑