|
ABSTRACT
This paper considers the efficient evaluation of recursive queries expressed using Horn Clauses. We define sideways information passing formally and show how a query evaluation algorithm may be defined in terms of sideways information passing and control. We then consider a class of information passing strategies which suffices to describe most query evaluation algorithms in the database literature, and show that these strategies may always be implemented by rewriting a given program and evaluating the rewritten program bottom-up. We describe in detail several algorithms for rewriting a program. These algorithms generalize the Counting and Magic Sets algorithms to work with arbitrary programs. Safety and optimality of the algorithms are also considered.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
 |
Bancilhon et al 86
|
Francois Bancilhon , David Maier , Yehoshua Sagiv , Jeffrey D Ullman, Magic sets and other strange ways to implement logic programs (extended abstract), Proceedings of the fifth ACM SIGACT-SIGMOD symposium on Principles of database systems, p.1-15, March 24-26, 1986, Cambridge, Massachusetts, United States
[doi> 10.1145/6012.15399]
|
 |
Bancilhon and Ramakrishnan 86a
|
|
| |
Bancilhon and Ramakrishnan 86b
|
"Performance Evaluation of Data Intensive Logic Programs," F Bancllhon and R Ramakmhnan, Preprmts of Workshop on Foundations of Deductive Databases and Logic Progranmung, Washington, D C, Aug ust 1986,
|
 |
Beeri et al 87
|
C. Beeri , S. Naqvi , R. Ramakrishnan , O. Shmueli , S. Tsur, Sets and negation in a logic data base language (LDL1), Proceedings of the sixth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.21-37, March 23-25, 1987, San Diego, California, United States
[doi> 10.1145/28659.28662]
|
 |
Henschen and Naqvi 84
|
|
| |
Kifer and Lozinskii 85
|
"Query Opumtzauon m Logm Databases," M Kffer and E Lozanskn, Techmcal Report, SUNY at Stonybrook, June 1985
|
| |
Kifer and Lozinskii 86
|
" A Framework for an Efficient ImplementaUon of Deducuve Databases," M gafer and E Lozanskn, Proc Advanced Database Symposium, Tokyo, 1986
|
| |
Lloyd 84
|
|
| |
Lozinskii 85
|
"Evaluaung Queries m Deductive Databases by Generattng," E Lozmskn, Proc 11th internatwnal Joint Conference on Arttfictal lntelhgence, 1985
|
| |
McKay and Shapiro 81
|
"Using Aclave Conneclaon Graphs for Reasonmg with Recurslve Rules," D McKay and S Shapn'o, Proc 7th lnternatwnal Joint Conference on Artificial Intelhgence, 1981
|
| |
Rohmer and Lescoeur 85
|
"La Methode Alexandre une soluuon pour trmter les axlomes reeursffs darts les bases de donnees deduclaves ," Rohmer and Lescoeur, Colloque Reconnatssance de Formes et lntelhgence Art~ctelle, Grenoble, November 1985
|
 |
Sacca and Zaniolo 86a
|
|
| |
Sacca and Zaniolo 86b
|
|
 |
Ullman 85
|
|
| |
Van Gelder 86
|
"A Message Passmg Framework for Recurslve Query Evaluauon," A. Van Gelder, Proc SIG- MOD, 1986
|
| |
Vieille 86
|
"Recurswe axioms m DeAucuve Databases The Query/Subquery Approach," L Vletlle, Proc Fwst Intl Conference on Expert Database Systents, Charleston, 1986
|
CITED BY 94
|
|
Jiawei Han , Ling Liu , Zhaohui Xie, LogicBase: a deductive database system prototype, Proceedings of the third international conference on Information and knowledge management, p.226-233, November 29-December 02, 1994, Gaithersburg, Maryland, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
J. F. Naughton , R. Ramakrishnan , Y. Sagiv , J. D. Ullman, Efficient evaluation of right-, left-, and multi-linear rules, ACM SIGMOD Record, v.18 n.2, p.235-242, June 1989
|
|
|
|
|
|
C. Beeri , P. Kanellakis , F. Bancilhon , R. Ramakrishnan, Bounds on the propagation of selection into logic programs, Proceedings of the sixth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.214-226, March 23-25, 1987, San Diego, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inderpal Singh Mumick , Sheldon J. Finkelstein , Hamid Pirahesh , Raghu Ramakrishnan, Magic conditions, Proceedings of the ninth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.314-330, April 02-04, 1990, Nashville, Tennessee, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Colin Bell , Anil Nerode , Raymond T. Ng , V. S. Subrahmanian, Implementing deductive databases by linear programming, Proceedings of the eleventh ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.283-292, June 02-05, 1992, San Diego, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Jayen Vaghani , Kotagiri Ramamohanarao , David B. Kemp , Zoltan Somogyi , Peter J. Stuckey , Tim S. Leask , James Harland, The aditi deductive database system, The VLDB Journal — The International Journal on Very Large Data Bases, v.3 n.2, April 1994
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|