arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.04757cs.DBcs.LO
收藏

关系数据库的结构索引用于自由连通无环联接查询的评估

Structural Indexing of Relational Databases for the Evaluation of Free-Connex Acyclic Conjunctive Queries

Pontificia Universidad Católica de Chile(智利天主教 Pontificia Universidad Católica 大学);Humboldt-Universität zu Berlin(柏林洪堡大学)

Cristian Riveros, Benjamin Scheidt, Nicole Schweikardt

AI总结:

该研究提出了一种基于数据库元组结构性对称性的索引方法,用于高效评估自由连通无环联接查询。

摘要:

我们提出了一种索引结构,以加速对关系数据库上的自由连通无环联接查询(fc-ACQs)的评估。与给定数据库$D$相关的索引的主要成分是一个辅助数据库$D_{col}$。我们的主要结果表明,对于任何fc-ACQ$Q$ over$D$,在预处理阶段后,可以在线性时间内处理$D_{col}$的大小,从而能够对$Q$的答案数量进行计数或以常数延迟枚举。与基于值或顺序的索引方法(如B+树)不同,我们的索引基于数据库中元组之间的结构性对称性,且$D_{col}$的大小与Scheidt和Schweikardt的“关系着色细化”(2025)为$D$分配的颜色数相关。在图的特定情况下,这相当于图的等分的最小大小。例如,在二叉树的情况下,$D_{col}$的大小是对数级的,而在正则图中则是常数。即使在最坏情况下,$D$中没有任何元组之间的结构性对称性,$D_{col}$的大小仍然与$D$的大小成线性关系。由于$D_{col}$的大小受$D$大小的限制,并且可以显著更小(甚至对于某些数据库家族来说是常数),我们的索引是首个关于对数据库内部结构性对称性进行索引以评估所有fc-ACQs的基础性结果,其性能可能严格小于数据库大小。

英文摘要:

We present an index structure to boost the evaluation of free-connex acyclic conjunctive queries (fc-ACQs) over relational databases. The main ingredient of the index associated with a given database $D$ is an auxiliary database $D_{col}$. Our main result states that for any fc-ACQ $Q$ over $D$, we can count the number of answers of $Q$ or enumerate them with constant delay after a preprocessing phase that takes time linear in the size of $D_{col}$. Unlike previous indexing methods based on values or order (e.g., B+ trees), our index is based on structural symmetries among tuples in a database, and the size of $D_{col}$ is related to the number of colors assigned to $D$ by Scheidt and Schweikardt's "relational color refinement" (2025). In the particular case of graphs, this coincides with the minimal size of an equitable partition of the graph. For example, the size of $D_{col}$ is logarithmic in the case of binary trees and constant for regular graphs. Even in the worst-case that $D$ has no structural symmetries among tuples at all, the size of $D_{col}$ is still linear in the size of $D$. Given that the size of $D_{col}$ is bounded by the size of $D$ and can be much smaller (even constant for some families of databases), our index is the first foundational result on indexing internal structural symmetries of a database to evaluate all fc-ACQs with performance potentially strictly smaller than the database size.

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

↑