2003 · 35 citations · 29 references
ComputingComputer ScienceData ManagementDatabasesTheory Of ComputationData WarehousingDatabase ManagementQuery OptimizationQuery ProcessingRelational AlgebraRelational Data ModelJoin AlgorithmsMaterialized ViewsQuery ComplexitySearch Space ReductionSearch Space RepresentationWorkload
In this paper we study the following problem. Given a database and a set of queries, we want to find, in advance, a set of views that can compute the answers to the queries, such that the size of the viewset (i.e., the amount of space, in bytes, required to store the viewset) is minimal on the given database. This problem is important for many applications such as distributed databases, data warehousing, and data integration. We explore the decidability and complexity of the problem for workloads of conjunctive queries. We show that results differ significantly depending on whether the workload queries have self-joins. If queries can have self-joins, then a disjunctive viewset can be a better solution than any set of conjunctive views. We show that the problem of finding a minimal-size disjunctive viewset is decidable, and give an upper bound on its complexity. If workload queries cannot have self-joins, there is no need to consider disjunctive viewsets, and we show that the problem is in NP. We describe a very compact search space of conjunctive views, which contains all views in at least one optimal disjunctive viewset. We give a dynamic-programming algorithm for finding minimal-size disjunctive viewsets for queries without self-joins, and discuss heuristics to make the algorithm efficient.
29
Maurizio Lenzerini · 2002 · 2.5K citations
Mediators in the architecture of future information systems
Gio Wiederhold · Computer · 1992 · 2.2K citations
Access path selection in a relational database management system
Patricia G. Selinger, M. M. Astrahan, Donald D. Chamberlin et al. · 1979 · 2.2K citations
Answering queries using views: A survey
Alon Halevy · The VLDB Journal · 2001 · 1.5K citations
Optimal implementation of conjunctive queries in relational data bases
Ashok K. Chandra, Philip M. Merlin · 1977 · 1.2K citations · Full text