Even though query evaluation is a fundamental task in databases, known classifications of conjunctive queries by their fine-grained complexity only apply to queries without self-joins. We study how self-joins affect enumeration complexity, with the aim of building upon the known results to achieve general classifications. We do this by examining the extension of two known dichotomies: one with respect to linear delay, and one with respect to constant delay after linear preprocessing. As this turns out to be an intricate investigation, this paper is structured as an example-driven discussion that initiates this analysis. We show enumeration algorithms that rely on self-joins to efficiently evaluate queries that otherwise cannot be answered with the same guarantees. Due to these additional tractable cases, the hardness proofs are more complex than the self-join-free case. We show how to harness a known tagging technique to prove hardness of queries with self-joins. Our study offers sufficient conditions and necessary conditions for tractability and settles the cases of queries of low arity and queries with cyclic cores. Nevertheless, many cases remain open.
翻译:尽管查询评估是数据库中的一项基本任务,但已知的按细微复杂程度进行的合并查询分类,只适用于没有自我参与的查询。我们研究自来作主如何影响查点复杂性,目的是在已知结果的基础上更进一步,以达到一般分类。我们这样做的方法是研究两个已知二分法的延伸:一个是关于线性延迟的,另一个是关于线性预处理后不断拖延的。由于这是一个复杂的调查,本文件的结构是作为引领这一分析的以实例为驱动的讨论。我们展示了依靠自来作主的查点算法,以有效评价否则无法以相同保证方式回答的查询。由于这些额外的可转移案例,硬性证明比无自来作主的情况要复杂得多。我们展示了如何利用已知的标记技术来证明自来作主的查询的难度。我们的研究为可选取性提供了充分的条件和必要的条件,并解决低性查询和以自行车核心查询的案例。然而,许多案例仍然开放。