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.

[1]  Serge Abiteboul Boundedness is Undecidable for Datalog Programs with a Single Recursive Rule , 1989, Inf. Process. Lett..

[2]  John Grant,et al.  Foundations of Semantic Query Optimization for Deductive Databases , 1988, Foundations of Deductive Databases and Logic Programming..

[3]  Laks V. S. Lakshmanan,et al.  Structural query optimization—a uniform framework for semantic query optimization in deductive databases , 1991, PODS '91.

[4]  David Maier,et al.  The Theory of Relational Databases , 1983 .

[5]  Gabriel M. Kuper,et al.  Structural Properties of XPath Fragments , 2003, ICDT.

[6]  Jeffrey D. Ullman,et al.  Principles of Database and Knowledge-Base Systems, Volume II , 1988, Principles of computer science series.

[7]  Chun Zhang,et al.  Storing and querying ordered XML using a relational database system , 2002, SIGMOD '02.

[8]  Jeffrey F. Naughton,et al.  Efficient evaluation of right-, left-, and multi-linear rules , 1989, SIGMOD '89.

[9]  Jeffrey D. Ullman,et al.  Principles Of Database And Knowledge-Base Systems , 1979 .

[10]  Alin Deutsch,et al.  Reformulation of XML Queries and Constraints , 2003, ICDT.

[11]  Jeffrey D. Ullman,et al.  Principles of database and knowledge-base systems, Vol. I , 1988 .

[12]  Alin Deutsch,et al.  A chase too far? , 2000, SIGMOD '00.

[13]  Moshe Y. Vardi Decidability and undecidability results for boundedness of linear recursive queries , 1988, PODS.

[14]  Stavros S. Cosmadakis,et al.  Parallel evaluation of recursive rule queries , 1985, PODS '86.

[15]  David Maier,et al.  Magic sets and other strange ways to implement logic programs (extended abstract) , 1985, PODS '86.

[16]  Serge Abiteboul,et al.  Foundations of Databases , 1994 .

[17]  Jack Minker Foundations of deductive databases and logic programming , 1988 .

[18]  Divesh Srivastava,et al.  CORAL - A Database Programming Language , 1990, Workshop on Deductive Databases.

[19]  José R. Paramá,et al.  A semantic approach to optimize linear datalog programs , 2006, Acta Informatica.

[20]  José R. Paramá Chase of datalog programs and its application to solve the functional dependencies implication problem , 2001 .

[21]  Jeffrey F. Naughton,et al.  Data independent recursion in deductive databases , 1985, J. Comput. Syst. Sci..