Chase of Recursive Queries
نویسندگان
چکیده
In this work, we present a semantic query optimization technique to improve the efficiency of the evaluation of a subset of SQL:1999 recursive queries. Using datalog notation, we can state our main contribution as an algorithm that builds a program P ′ equivalent to a given program P , when both are applied over a database d satisfying a set of functional dependencies. The input program P is a linear recursive datalog program. The new program P ′ has less different variables and, sometimes, less atoms in rules, thus it is cheaper to evaluate. Using coral, P ′ is empirically shown to be more efficient than the original program.
منابع مشابه
Chasing Tree Patterns under Recursive DTDs
Finding a homomorphism between tree patterns is an important technique for testing tree pattern containment, and it is the main technique behind algorithms for rewriting tree pattern queries using views. Recent work has shown that for tree patterns P and Q that involve parent-child (/) edges, ancestor-descendant (//) edges, and branching ([]) only, under a non-disjunctive, non-recursive dtd G, ...
متن کاملQuery Rewriting using Semistructured Views
We consider the problem of rewriting semistructured queries using semistructured views. Given a client semistructured positive non-recursive query and a set of semistructured views, the algorithm nds a rewriting query that is equivalent to the client query and accesses only the views. Our solution is based on appropriately generalizing well understood techniques such as containment mappings and...
متن کاملContainment of Conjunctive Queries under Access Limitations ( extended abstract )
Relational data may have access limitations, i.e., relations may require certain attributes to be selected when they are accessed; this happens, for instance, while querying web data sources (wrapped in relational form) or legacy databases. It is known that the evaluation of a conjunctive query under access limitations requires a recursive algorithm that is encoded into a Datalog program. In th...
متن کاملQuerying and Routing in Next-Generation Networks
I propose the use of recursive queries [24] as an interface for querying distributed network graph structures. Recursive queries allow a query result to be defined in terms of itself. This is particularly useful for querying network graphs that exhibit recursive structures. To query these distributed graphs over the Internet, I propose using distributed query processing techniques to process re...
متن کاملRecursive Queries Using Object Relational Mapping
Recent years witnessed continuous development of database query languages and object relational mappers. One of the research fields of interest are recursive queries. The first implementations of such queries for SQL has been introduced by Oracle in 1985. However, it was the introduction of recursive Common Table Expressions into the SQL:99 standard that made the research on this topic more pop...
متن کامل