Title :
An optimization strategy for recursive queries in logic databases
Author :
Sippu, Seppo ; Soisalon-Soininen, Eljas
Author_Institution :
Dept. of Comput. Sci., Jyvaskyla Univ., Finland
Abstract :
Considers the optimization of recursive database queries expressed in Datalog (function-free Horn clause programs). The authors present a general strategy for rewriting a Datalog program to cut down the number of database facts consulted in the bottom-up evaluation of queries containing bound arguments. The strategy can be interpreted as a preprocessing task in which an `envelope´ containing the facts relevant to the query is determined by computing an easily evaluable query, and then the original query is applied to facts belonging to this envelope, which usually is only a small subset of all facts. The strategy applies to any Datalog program, and there exists a variant of the basic strategy that always produces `regular envelopes´ that can be determined using a regularly recursive program
Keywords :
database theory; optimisation; recursive functions; Datalog; bottom-up evaluation; bound arguments; database facts; easily evaluable query; function-free Horn clause programs; logic databases; optimization strategy; preprocessing task; program rewriting; recursive queries; regular envelopes; regularly recursive program; Algebra; Computer science; Fires; Logic; Optimization methods; Query processing; Relational databases;
Conference_Titel :
Data Engineering, 1988. Proceedings. Fourth International Conference on
Conference_Location :
Los Angeles, CA
Print_ISBN :
0-8186-0827-7
DOI :
10.1109/ICDE.1988.105493