Efficient Processing of Relational Queries with Constraints Over the Sum of Multiple Attributes

semanticscholar(2006)

引用 1|浏览3
暂无评分
摘要
We identify and study an important class of relational queries involving constraints over the sum of multiple attributes (sum constraint queries). Finding all or a given number of results of these queries requires expensive join operations. These joins, in the absence of any other join conditions, effectively become cartesian products. We develop rewriting techniques to rewrite a sum constraint query in order to enable its efficient processing by conventional relational database engines. Experimental results show that query rewriting achieves notable performance improvement for sum constraint queries without modifying database search engine. For queries asking for a given number of results, we propose a ranking algorithm to order tuples based on their probability to satisfy all sum constraints in a query. We compare it with traditional ranking algorithms that rank tuples based on value of one attribute, and show that our method is more stable and efficient to handle sum constraint queries. We also study a special but common type of sum constraint queries: self-join of a relation with symmetric sum constraints as join conditions. Considering the large number of possible execution plans, we prove that left-deep tree is always the best execution plan for this type of queries.
更多
查看译文
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要