Partitioned optimization of complex queries

被引:9
|
作者
Chatziantoniou, Damianos
Ross, Kenneth A.
机构
[1] Athens Univ Econ & Business, Dept Management Sci & Technol, Athens 11362, Greece
[2] Columbia Univ, Dept Comp Sci, New York, NY 10027 USA
基金
美国国家科学基金会;
关键词
query processing; query languages; decision support queries; OLAP;
D O I
10.1016/j.is.2005.09.003
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Performing complex analysis on top of massive data stores is essential to most modern enterprises and organizations and requires significant aggregation over different attribute sets (dimensions) of the participating relations. Such queries may take hours or days, a time period unacceptable in most cases. As a result. it is important to study these queries and identify special frequent cases that can be evaluated with specialized algorithms. Understanding complex aggregate queries leads to better execution plans and, consequently, performance. The idea of partitioning is fundamental and central in aggregate queries. This concept can be used to define a class of queries called group queries. The main characteristic of a group query is that it can be evaluated in a partitioned (or groupwise) fashion, i.e. the underlying relation(s) can be partitioned (based on a set of attributes) into disjoint groups and each group can be processed separately, possibly in parallel. For example, a query that performs a complex operation (e.g. joins and/or selections and/or aggregations) within each group is a group query. To express it in SQL, one has to join/ correlate several views and/or subqueries on the grouping attributes. A naive plan (where the joins are executed) may be very expensive, even for relatively small base relations. On the other hand, a groupwise evaluation can lead to huge performance gains. We present a syntactic criterion to identify group queries in SQL and show that every group query can be expressed in a way that satisfies this criterion. This work is based on Chatziantoniou and Ross [Querying Multiple Features of Groups in Relational Databases. in: 22nd International Conference on Very Large Databases, VLDB, 1996, pp. 295-306]. The concept of group queries is useful not only in terms of evaluation, but also in terms of analyzing a complex decision support query that aggregates over different sets of attributes. In such a case the query may be decomposable to one or more query components, where each component is a group query. This observation allows parallel execution, multi-query processing and identification of special cases. We present in this paper two algorithms to decompose a complex aggregate query to its group query components. The value of groupwise processing has been recently recognized by the research community and implemented in at least a major commercial system. To be of use however in a relational system, partitioned evaluation has to be modeled as a relational operator. We review three different approaches for such art operator and propose a generalized groupwise operator. We also perform some experiments to show that naive optimization with the new operator incorporated without taking into consideration decompositions to group query components does not always lead to the most efficient plans. An extended syntax is another way to identify special frequent cases and apply efficient algorithms. Having specific operators for common operations contributes to the succinctness and optimizability of certain queries (e.g. datacubes). An extended syntax is presented with emphasis for multi-feature queries, a frequent and practical subclass of group queries that is amenable to specialized evaluation, involving (potentially repeated) selection, grouping and aggregation over the same groups. (c) 2005 Elsevier B.V. All rights reserved.
引用
收藏
页码:248 / 282
页数:35
相关论文
共 50 条
  • [21] Parsing skyline queries
    Huang, Zhen-Hua
    Xiang, Yang
    Lin, Chen
    Sun, Sheng-Li
    Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2009, 37 (08): : 1639 - 1645
  • [22] Video Monitoring Queries
    Koudas, Nick
    Li, Raymond
    Xarchakos, Ioannis
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2022, 34 (10) : 5023 - 5036
  • [23] The σ-neighborhood skyline queries
    Chen, Yi-Chung
    Lee, Chiang
    INFORMATION SCIENCES, 2015, 322 : 92 - 114
  • [24] Parallel partitioned-cube algorithm
    Momen-Pour, S
    Wagner, A
    PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED PROCESSING TECHNIQUES AND APPLICATIONS, VOLS I-V, 2000, : 1255 - 1260
  • [25] Hypothetical Queries on Multidimensional Dataset
    Zhou, Guoliang
    Chen, Hong
    Zhang, Yansong
    2009 INTERNATIONAL CONFERENCE ON BUSINESS INTELLIGENCE AND FINANCIAL ENGINEERING, PROCEEDINGS, 2009, : 539 - 543
  • [26] A Trichotomy for Regular Trail Queries
    Martens, Wim
    Niewerth, Matthias
    Trautner, Tina
    37TH INTERNATIONAL SYMPOSIUM ON THEORETICAL ASPECTS OF COMPUTER SCIENCE (STACS 2020), 2020, 154
  • [27] Threshold queries in theory and in the wild
    Angela Bonifati
    Stefania Dumbrava
    George Fletcher
    Jan Hidders
    Matthias Hofer
    Wim Martens
    Filip Murlak
    Joshua Shinavier
    Sławek Staworko
    Dominik Tomaszuk
    The VLDB Journal, 2025, 34 (4)
  • [28] Formal models of Web queries
    Mendelzon, AO
    Milo, T
    INFORMATION SYSTEMS, 1998, 23 (08) : 615 - 637
  • [29] Containment of queries for graphs with data
    Kostylev, Egor V.
    Reutter, Juan L.
    Vrgoc, Domagoj
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2018, 92 : 65 - 91
  • [30] Ranking queries on uncertain data
    Hua, Ming
    Pei, Jian
    Lin, Xuemin
    VLDB JOURNAL, 2011, 20 (01) : 129 - 153