We study the dynamic evaluation of conjunctive queries with output access patterns. An access pattern is a partition of the free variables of the query into input and output.The query returns tuples over the output variables given a tuple over the input variables. Our contribution is threefold. First, we give a syntactic characterisation of queries that admit constant time per single-tuple update and whose output tuples can be enumerated with constant delay given an input tuple. Second, we define a class of queries that admit optimal, albeit non-constant, update time and delay. Their optimality is predicated on the Online Matrix-Vector Multiplication conjecture. Third, we chart the complexity trade-off between preprocessing, update time and enumeration delay for such queries. Our results recover prior work on the dynamic evaluation of conjunctive queries without access patterns.
翻译:我们用输出存取模式研究对连接查询的动态评估。 访问模式是将查询的自由变量分割为输入和输出。 查询返回输出变量的图例, 给输入变量的图例。 我们的贡献是三重。 首先, 我们给出询问的综合特征, 允许每个单项更新的固定时间, 并且如果输入图例, 其输出图例可以不断拖延地被列出。 其次, 我们定义了一组查询, 允许优化, 尽管不固定, 更新时间和延迟。 其最佳性取决于在线矩阵- 变量乘法猜测。 第三, 我们绘制了这些查询在预处理、 更新时间和查点延迟之间的复杂交易。 我们的结果恢复了之前对不使用模式的连接查询进行动态评估的工作 。