National Technical University of Athens (NTUA)
Query optimization under bag and bag-set semantics for multiple heterogeneous data sources
Abstract
dc:descriptionIn this thesis, we investigate techniques for query optimization using a set of views, considering bothrelational and XML databases. In particular, we focus on three fundamental problems of queryoptimization; which are the query containment, the query rewriting and the view selection.For relational databases we focus on the class of select-project-join SQL queries with equalitycomparisons, a.k.a. conjunctive queries (CQs for short). We consider two kinds of semantics totheoretically approximate the SQL semantics: the bag (multiple occurrences of the same tuple areallowed in both base relations and answers of queries) and bag-set semantics (the base relations aresets and the operators are liable for bag-results). For XML databases, we focus on XPath. Especially,we focus on the major fragments of XPath which contain two of the constructs: wildcard, descendantedge and branches.Query containment under both bag and bag-set semantics is investigated through a detailed analysisof special cases of CQs. The complexity in each case is given, as well. For the general case, theproblem remains open for more than a decade. Moreover, we give necessary and sufficientconditions for deciding both containment and equivalence for unions of XPath queries; a problemwhich was not investigated in depth, in the past.The problem of finding an equivalent rewriting is also investigated for both relational and XPathqueries. In particular, for relational queries, we describe the requirements that a set of views have tosatisfy in order to give an equivalent rewriting of a CQ under both bag and bag-set semantics. In thecase of XML databases, we investigate the problem of rewriting an XPath query using multiple views,and prove that in the case that the query contains both descendant edges and wildcards, the unionoperator may be required for finding an equivalent rewriting.The view selection is investigated for workloads of CQs under both bag and bag-set semantics.Especially, we aim to limit the search space of candidate viewsets. We start with the general case,where we give a tight condition that candidate views can satisfy and still the search space doescontain at least one optimal solution. Then we study special cases. We show that for chain queryworkloads under both bag and bag-set semantics, taking only chain views may miss optimal solution,whereas, if we further limit the queries to be path queries, then under bag semantics, path viewssuffice.
Degree
thesis:*- Grantor dc:publisher
- National Technical University of Athens (NTUA)
- Year dc:date
- 2011
Author and committee
dc:creator, dc:contributor.*- Authors dc:creator
-
- Damigos, Matthew
- Δαμίγος, Ματθαίος
Subjects
dc:subject × 20- Βελτιστοποίηση ερωτημάτων
- Σημασιολογία πολυσυνόλου
- Σημασιολογία συνόλου-πολυσυνόλου
- Συζευκτικά ερωτήματα
- Επιλογή όψεων
- Μετασχηματισμός ερωτημάτων
- Περιεκτικότητα ερωτημάτων
- Ετερογενείς πηγές πληροφόρησης
- Query optimization
- Bag semantics
- Bag-set semantics
- Conjuctive queries
- View selection
- Query rewriting
- Query containment
- Heterogeneous data sources
- Επιστήμες Μηχανικού και Τεχνολογία
- Επιστήμη Ηλεκτρολόγου Μηχανικού, Ηλεκτρονικού Μηχανικού, Μηχανικού Η/Υ
- Engineering and Technology
- Electrical Engineering, Electronic Engineering, Information Engineering
Rights
- Language dc:language
- eng
Identifiers
dc:identifier.*- Identifier
- 10.12681/eadd/30321