Abstract
This paper presents STARBASE, a new method for database query evaluation which advances the state of the art in deductive database technology by providing an automatic method for reordering the literals in the body of a rule so that the next literal to be processed is guaranteed to be one of the most instantiated ones. A prototype implementation of a STARBASE system is described and its performance compared to XSB and Prolog for a range of examples. The prototype implementation is restricted to Datalog programs, but can be extended to stratified programs. The main features of STARBASE which guarantee high performance are (1) it focuses on data relevant to the query, (2) it avoids redundant computation and looping by storing partial results, and (3) it replaces subsumption checking with syntactic equality checking.
Preview
Unable to display preview. Download preview PDF.
References
A.V. Aho and J.D. Ullman. Universality of data retrieval languages. Proc. Symp. Principles of Programming Languages, 110–120, 1979.
C. Beeri and R. Ramakrishnan. On the power of magic. JLP, 10(10):255–299, 1991.
W. Chen and D.S. Warren. Query evaluation under the well founded semantics. PODS'93, 168–179.
S.W. Dietrich and D.S. Warren. Dynamic programming strategies for the evaluation of recursive queries. Technical Report 85/31, SUNY at Stony Brook, 1985.
G. Gazdar and C. Mellish. Natural Language in Prolog. An Introduction to Computational Linguistics. Addison-Wesley Publishing Company, 1989.
G. Grahne, S. Sippu, and E. Soisalon-Soininen. Efficient evaluation for a subset of recursive queries. JLP, 10:301–332, 1991.
L.J. Henschen and S.A. Naqvi. On compiling queries in recursive first-order databases. Journal of the ACM, 31(1):47–85, 1984.
M. Kifer and E. Lozinskii. Filtering data flow in deductive databases. ICDT'86. LNCS 243, 186–202.
J.V. Leeuwen. Handbook of Theoretical Computer Science. Algorithms and Complexity. Elsevier — The MIT Press, 1990.
E.L. Lozinskii. Evaluating queries in deductive databases by generating. IJCAI'85, 173–177.
E. Minieka. Optimization Algorithms for Networks and Graphs. Marcel Dekker, Inc., 1978.
K.A. Morris. An algorithm for ordering subgoals in NAIL! PODS'88, 82–88.
W. Nejdl. Recursive strategies for answering recursive queries — the RQA/FQI strategy. VLDB'87, 43–50.
F.C.N. Pereira and D.H.D. Warren. Parsing as deduction. 21st Annual Meeting of the Association for Computational Linguistics, 137–144, 1983.
E. Pulido. Recursive query processing in deductive databases using graph traversal and rule compilation techniques. PhD thesis, University of Bristol, 1996.
R. Ramakrishnan, D. Srivastava, and S. Sudarshan. CORAL — control, relations and logic. VLDB'92, 238–250.
D.A. Rosenblueth. Chart parsers as proof procedures for fixed-mode logic programs. To be published in New Generation Computing.
K. Sagonas, T. Swift, and D.S. Warren. XSB as an efficient deductive database engine. SIGMOD Record, 23(2):442–453, 1994.
N.K. Simpkins and P. Hancox. Chart parsing in Prolog. New Generation Computing, 8:113–138, 1990.
H. Tamaki and T. Sato. OLD resolution with tabulation. ICLP'86, 84–98.
S. Tsur and C. Zaniolo. LDL: a logic-based data language. VLDB'86, 33–41.
J.D. Ullman. Principles of Database and Knowledge-base Systems. Computer Science Press, 1988.
L. Vieille. Recursive query processing: the power of logic. Theoretical Computer Science, 69:1–53, 1989.
D.H.D. Warren. Efficient processing of interactive relational database queries expressed in logic. VLDB'81, 272–281.
P.T. Wood. Queries on graphs. Technical Report CSRI-223, Computer Systems Research Institute. University of Toronto, December 1988.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1996 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Pulido, E. (1996). Database query evaluation with the STARBASE method. In: Pedreschi, D., Zaniolo, C. (eds) Logic in Databases. LID 1996. Lecture Notes in Computer Science, vol 1154. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0031749
Download citation
DOI: https://doi.org/10.1007/BFb0031749
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-61814-0
Online ISBN: 978-3-540-70683-0
eBook Packages: Springer Book Archive