避免受保护聚合查询的物化
Avoiding Materialisation for Guarded Aggregate Queries
AI总结:
针对含多连接的聚合查询中间结果爆炸问题,提出基于受保护概念的逻辑与物理层优化技术避免连接结果物化,并在Spark SQL实现且经标准基准验证有效性。
摘要:
优化包含大量连接的查询是一个已知的难题。中间结果的爆炸式增长与小得多的最终结果形成对比,这对现代数据库管理系统(DBMSs)构成了严峻挑战。在连接多个表但最终仅输出相对较小聚合信息的分析查询中,这一点尤为突出。图数据库系统在处理复杂路径查询之上带有聚合的分析查询时,也面临类似问题。在这项工作中,我们在逻辑和物理层面提出了新颖的优化技术,这些技术允许我们避免对某些类型的聚合查询进行连接结果的物化。这些优化的关键是受保护(guardedness)的概念,通过它我们对GROUP BY子句和聚合表达式中属性的出现施加限制。我们的优化的有效性通过在Spark SQL中的实现以及在各种标准基准上的广泛实证评估得到了验证。
英文摘要:
Optimising queries with many joins is known to be a hard problem. The explosion of intermediate results as opposed to a much smaller final result poses a serious challenge to modern database management systems (DBMSs). This is particularly glaring in case of analytical queries that join many tables, but ultimately only output comparatively small aggregate information. Analogous problems are faced by graph database systems when processing analytical queries with aggregates on top of complex path queries. In this work, we propose novel optimisation techniques both, on the logical and physical level, that allow us to avoid the materialisation of join results for certain types of aggregate queries. The key to these optimisations is the notion of guardedness, by which we impose restrictions on the occurrence of attributes in GROUP BY clauses and in aggregate expressions. The efficacy of our optimisations is validated through their implementation in Spark SQL and extensive empirical evaluation on various standard benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。