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 条
  • [31] Declarative Multidimensional Graph Queries
    Voigt, Hannes
    BUSINESS INTELLIGENCE (EBISS 2016), 2017, 280 : 1 - 37
  • [32] A TRICHOTOMY FOR REGULAR TRAIL QUERIES
    Martens, Wim
    Niewerth, Matthias
    Popp, Tina
    LOGICAL METHODS IN COMPUTER SCIENCE, 2023, 19 (04) : 20:1 - 20:38
  • [33] An efficient processing of range-MIN/MAX queries over data cube
    Kim, DW
    Lee, EJ
    Kim, MH
    Lee, YJ
    INFORMATION SCIENCES, 1998, 112 (1-4) : 223 - 237
  • [34] Ranking queries on uncertain data
    Ming Hua
    Jian Pei
    Xuemin Lin
    The VLDB Journal, 2011, 20 : 129 - 153
  • [35] Distributed Processing of Similarity Queries
    Apostolos N. Papadopoulos
    Yannis Manolopoulos
    Distributed and Parallel Databases, 2001, 9 : 67 - 92
  • [36] Distributed processing of similarity queries
    Papadopoulos, AN
    Manolopoulos, Y
    DISTRIBUTED AND PARALLEL DATABASES, 2001, 9 (01) : 67 - 92
  • [37] Translating Relational Queries into Spreadsheets
    Sroka, Jacek
    Panasiuk, Adrian
    Stencel, Krzysztof
    Tyszkiewicz, Jerzy
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2015, 27 (08) : 2291 - 2303
  • [38] Parallel methods for the update of partitioned inverted files
    MacFarlane, A.
    McCann, J. A.
    Robertson, S. E.
    ASLIB PROCEEDINGS, 2007, 59 (4-5): : 367 - 396
  • [39] The RD-Tree:: a structure for processing Partial-MAX/MIN queries in OLAP
    Yang, WS
    Chung, YD
    Kim, MH
    INFORMATION SCIENCES, 2002, 146 (1-4) : 137 - 149
  • [40] Cooperative evaluation of XML queries in mediators
    Yang, LH
    Tang, SW
    Yang, DQ
    CONCURRENT ENGINEERING-RESEARCH AND APPLICATIONS, 2001, 9 (02): : 131 - 138