Very Large Data Bases · 1987 · 188 citations · 21 references
ComputingComputer ScienceData StructuresDatabasesProgramming LanguagesDatabase ManagementQuery OptimizationQuery ProcessingRelational AlgebraRelational Data ModelStructured Query LanguageJoin OperationsRelational Algebra TreesRelational Query LanguagesRelational Query ProcessingSql Query LanguagesSubquery OptimizationSubquery Processing
Current query optimizers mainly handle Restrict‑Project‑Join patterns and struggle with SQL/DAPLEX features such as nested subqueries, aggregates, and quantifiers, relying on inefficient tuple substitution especially in distributed settings. The paper aims to develop alternative strategies and demonstrate the feasibility of an integrated framework for optimizing SQL and similar languages with complex features. The authors introduce new operations for complex query features and, based on their algebraic properties, derive new query processing tactics. The new tactics expand the range of viable optimization strategies without significantly changing existing optimizer architectures.
Existing query optimizers focus on Restrict-Project-Join queries. In practice, however, query languages such as SQL and DAPLEX have many powerful features (eg., control over duplicates, nested subqueries, grouping, aggregates, and quantifiers) that are not expressible as sequences of Restrict, Project, and Join operations. Existing optimizers are severely limited in their strategies for processing such queries; typically they use only tuple substitution, and process nested subquery blocks top down. Tuple substitution, however, is generally inefficient and especially so when the database is distributed. Hence, it is imperative to develop alternative strategies. This paper introduces new operations for these difficult features, and describes implementation methods for them. From the algebraic properties of these operations, new query processing tactics are derived. It is shown how these new tactics can be deployed to greatly increase the space of interesting strategies for optimisa tion, without seriously altering the architecture of existing optimisers. The contribution of the paper is in demonstrating the feasibility and desirability of developing an integrated framework for optimising all of SQL or other query languages that have similiar features.
21
Access path selection in a relational database management system
Patricia G. Selinger, M. M. Astrahan, Donald D. Chamberlin et al. · 1979 · 2.2K citations
Extending the data base relational model to capture more meaning
E. F. Codd · 1979 · 563 citations