层次查询的静态与动态评估中的权衡
Trade-offs in Static and Dynamic Evaluation of Hierarchical Queries
AI总结:
研究具有任意自由变量的层次查询在静态与动态评估中的权衡,提出基于值度数的差异化计算与维护策略,通过调整轻/重阈值恢复先前结果并实现最坏情况最优的更新时间与枚举延迟。
摘要:
我们研究具有任意自由变量的层次查询在静态和动态评估中的权衡。在静态设置中,权衡存在于部分计算查询结果的时间与枚举其元组所需的延迟之间。在动态设置中,我们额外考虑在数据库进行单元组插入或删除时更新查询结果所需的时间。\n\n我们的方法观察数据库中值的度数,并对高度数(重)值和低度数(轻)值使用不同的计算与维护策略。对于后者,它部分计算结果;对于前者,它计算足够的信息以支持即时枚举。\n\n我们将预处理时间、更新时间和枚举延迟定义为轻/重阈值的函数。通过适当选择该阈值,我们的方法在限于层次查询时恢复了若干先前结果。\n\n我们证明,对于受限的层次查询类,在在线矩阵-向量乘法猜想成立的前提下,我们的方法实现了最坏情况最优的更新时间和枚举延迟。
英文摘要:
We investigate trade-offs in static and dynamic evaluation of hierarchical queries with arbitrary free variables. In the static setting, the trade-off is between the time to partially compute the query result and the delay needed to enumerate its tuples. In the dynamic setting, we additionally consider the time needed to update the query result under single-tuple inserts or deletes to the database. Our approach observes the degree of values in the database and uses different computation and maintenance strategies for high-degree (heavy) and low-degree (light) values. For the latter it partially computes the result, while for the former it computes enough information to allow for on-the-fly enumeration. We define the preprocessing time, the update time, and the enumeration delay as functions of the light/heavy threshold. By appropriately choosing this threshold, our approach recovers a number of prior results when restricted to hierarchical queries. We show that for a restricted class of hierarchical queries, our approach achieves worst-case optimal update time and enumeration delay conditioned on the Online Matrix-Vector Multiplication Conjecture.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。