Semantic query optimization in Datalog programs (extended abstract)

Alon Y. Levy, Yehoshua Sagiv · 1995

) Alon Y. Levy AT&T Bell Laboratories [email protected] Yehoshua Sagiv Hebrew University, Jerusalem [email protected] Abstract Semantic query optimization refers to the process of using integrity constraints (ic's) in order to optimize the evaluation of queries. The process is well understood in the case of unions of select-project-join queries (i.e., nonrecursive datalog). For arbitrary datalog programs, however, the issue has largely remained an unsolved problem. This paper studies this problem and shows when semantic query optimization can be completely done in recursive rules provided that order constraints and negated EDB subgoals appear only in the recursive rules, but not in the ic's. If either order constraints or negated EDB subgoals are introduced in ic's, then the problem of semantic query optimization becomes undecidable. Since semantic query optimization is closely related to the containment problem of a datalog program in a union of conjunctive queries, our res...

Read the paper · More papers on PaperTik