一个尺寸并不适合所有:关于Datalog评估中物理表示重要性的探讨
One Size Does NOT Fit All: On the Importance of Physical Representations for Datalog Evaluation
AI总结:
研究探讨了Datalog评估中物理表示的重要性,提出了一种自动选择机制,通过决策树根据工作负载特征选择合适的物理表示。
摘要:
Datalog是一种日益流行的递归查询语言,其设计上是声明式的,意味着其程序必须由引擎转换为实际的物理执行计划。在生成这个计划时,一个核心决定是如何对所有涉及的关系进行物理表示,而现有的Datalog引擎在这方面出人意料地限制性,并且往往采用一刀切的解决方案。原因在于,Datalog程序的典型执行计划不仅对物理表示执行单一类型的操作,而是多种操作的混合,例如插入、查找和包含检查。此外,每种操作类型的相关性高度依赖于工作负载特征,这些特征范围从熟悉的属性,如各个关系的大小、多重性和 arity,到非常具体的Datalog属性,例如当关系出现多次时规则的“交织”以及特别是查询的递归性,这可能会在评估过程中即时生成新的元组。这表明,需要多种物理表示,每种都有其自身的优缺点,以满足不同工作负载情况下的特定需求。为了评估这一点,我们对潜在合适的物理表示与七个维度的工作负载特征进行了深入实验研究,这些特征在实际Datalog程序中各不相同,揭示了哪些属性实际上起作用。基于这些见解,我们设计了一个自动选择机制,利用一组决策树来为给定的工作负载识别合适的物理表示。
英文摘要:
Datalog is an increasingly popular recursive query language that is declarative by design, meaning its programs must be translated by an engine into the actual physical execution plan. When generating this plan, a central decision is how to physically represent all involved relations, an aspect in which existing Datalog engines are surprisingly restrictive and often resort to one-size-fits-all solutions. The reason for this is that the typical execution plan of a Datalog program not only performs a single type of operation against the physical representations, but a mixture of operations, such as insertions, lookups, and containment-checks. Further, the relevance of each operation type highly depends on the workload characteristics, which range from familiar properties such as the size, multiplicity, and arity of the individual relations to very specific Datalog properties, such as the "interweaving" of rules when relations occur multiple times, and in particular the recursiveness of the query which might generate new tuples on the fly during evaluation. This indicates that a variety of physical representations, each with its own strengths and weaknesses, is required to meet the specific needs of different workload situations. To evaluate this, we conduct an in-depth experimental study of the interplay between potentially suitable physical representations and seven dimensions of workload characteristics that vary across actual Datalog programs, revealing which properties actually matter. Based on these insights, we design an automatic selection mechanism that utilizes a set of decision trees to identify suitable physical representations for a given workload.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。