查询分解:嵌套多集查询的高效关系评估(扩展版)
Query shredding: Efficient relational evaluation of queries over nested multisets (extended version)
摘要:
嵌套关系查询语言已经被广泛地研究,并且是诸如Microsoft的LINQ之类的工业语言集成查询系统的基础。但是,关系数据库本身并不支持查询结果中的嵌套集合。这可能导致主要的性能问题:如果程序员编写的查询产生嵌套的结果,那么这样的系统通常要么失败,要么生成大量的查询。我们提出了一种新的方法来查询切碎,它转换一个查询返回嵌套的数据到一个固定数量的SQL查询。我们的方法,在以前的工作相比,处理多集语义,并生成一个地道的SQL:1999查询直接从嵌套查询的范式。我们提供了一个详细的描述,我们的翻译和目前的实验表明,它提供了可比的或更好的性能比最近的替代方法的一系列例子。
英文摘要:
Nested relational query languages have been explored extensively, and underlie industrial language-integrated query systems such as Microsoft's LINQ. However, relational databases do not natively support nested collections in query results. This can lead to major performance problems: if programmers write queries that yield nested results, then such systems typically either fail or generate a large number of queries. We present a new approach to query shredding, which converts a query returning nested data to a fixed number of SQL queries. Our approach, in contrast to prior work, handles multiset semantics, and generates an idiomatic SQL:1999 query directly from a normal form for nested queries. We provide a detailed description of our translation and present experiments showing that it offers comparable or better performance than a recent alternative approach on a range of examples.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。