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

在更新和存在完整性约束的情况下对UCQ进行加密

Answering UCQs under updates and in the presence of integrity constraints

Christoph Berkholz, Jens Keppeler, Nicole Schweikardt

摘要:

我们调查的查询评估问题,固定查询在完全动态的数据库,元组可以插入或删除。任务是设计一个动态的数据结构,可以在每次数据库更新后立即报告固定查询的新结果。我们考虑联合查询(UCQ),并专注于查询评估任务测试(决定输入元组是否属于查询结果),枚举(枚举,没有重复,所有元组在查询结果),和计数(输出查询结果中的元组的数量)。我们确定了三个越来越严格的类UCQ,我们称之为T-层次,Q-层次,和详尽的Q-层次UCQ。我们的主要结果提供了以下二分法:如果查询的同态核心是t-层次(q-层次,穷举q-层次),那么测试(枚举,计数)问题可以解决恒定的更新时间和恒定的测试时间(延迟,计数时间)。否则,它不能用次线性更新时间和次线性测试时间(延迟,计数时间)来解决,除非OV猜想和/或OMv猜想失败。我们还研究了在完整性约束存在的情况下,动态环境下查询评估的复杂性,并针对小域约束的特殊情况(即,约束,其声明关系的特定列中的所有值属于恒定大小的固定域)。

英文摘要:

We investigate the query evaluation problem for fixed queries over fully dynamic databases where tuples can be inserted or deleted. The task is to design a dynamic data structure that can immediately report the new result of a fixed query after every database update. We consider unions of conjunctive queries (UCQs) and focus on the query evaluation tasks testing (decide whether an input tuple belongs to the query result), enumeration (enumerate, without repetition, all tuples in the query result), and counting (output the number of tuples in the query result). We identify three increasingly restrictive classes of UCQs which we call t-hierarchical, q-hierarchical, and exhaustively q-hierarchical UCQs. Our main results provide the following dichotomies: If the query's homomorphic core is t-hierarchical (q-hierarchical, exhaustively q-hierarchical), then the testing (enumeration, counting) problem can be solved with constant update time and constant testing time (delay, counting time). Otherwise, it cannot be solved with sublinear update time and sublinear testing time (delay, counting time), unless the OV-conjecture and/or the OMv-conjecture fails. We also study the complexity of query evaluation in the dynamic setting in the presence of integrity constraints, and we obtain according dichotomy results for the special case of small domain constraints (i.e., constraints which state that all values in a particular column of a relation belong to a fixed domain of constant size).

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

↑