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 条
  • [41] Provenance propagation in complex queries
    Tannen, Val
    Tannen, V., 1600, Springer Verlag (8000): : 483 - 493
  • [42] Complex regions in topological queries
    Nguyen, VH
    Parent, C
    Spaccapietra, S
    SPATIAL INFORMATION THEORY: A THEORETICAL BASIC FOR GIS, 1997, 1329 : 175 - 192
  • [43] A STRATEGY FOR EXECUTING COMPLEX QUERIES
    GRAZZINI, E
    PIPPOLINI, F
    LECTURE NOTES IN COMPUTER SCIENCE, 1989, 364 : 207 - 221
  • [44] An Approach to Aid Decision-Making by Solving Complex Optimization Problems Using SQL Queries
    Torres-Jimenez, Jose
    Rangel-Valdez, Nelson
    De-la-Torre, Miguel
    Avila-George, Himer
    APPLIED SCIENCES-BASEL, 2022, 12 (09):
  • [45] Processing and optimization of complex queries in schema-based P2P-networks
    Dhraief, H
    Kemper, A
    Nejdl, W
    Wiesner, C
    DATABASES, INFORMATION SYSTEMS, AND PEER-TO-PEER COMPUTING, 2005, 3367 : 31 - 45
  • [46] Horton+: A Distributed System for Processing Declarative Reachability Queries over Partitioned Graphs
    Sarwat, Mohamed
    Elnikety, Sameh
    He, Yuxiong
    Mokbel, Mohamed F.
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2013, 6 (14): : 1918 - 1929
  • [47] Parallel retrieval of complex object index for complex queries
    Horie, T
    Ogura, K
    Tsuji, T
    Higuchi, K
    Hochin, T
    COMPUTERS AND THEIR APPLICATIONS, 2003, : 193 - 197
  • [48] Partitioned optimization algorithms for multiple sequence alignment
    Chen, Yixin
    Pan, Yi
    Chen, Juan
    Liu, Wei
    Chen, Ling
    20TH INTERNATIONAL CONFERENCE ON ADVANCED INFORMATION NETWORKING AND APPLICATIONS, VOL 2, PROCEEDINGS, 2006, : 618 - +
  • [49] Global and partitioned reconstructions of undirected complex networks
    Xu, Ming
    Xu, Chuan-Yun
    Wang, Huan
    Li, Yong-Kui
    Hu, Jing-Bo
    Cao, Ke-Fei
    EUROPEAN PHYSICAL JOURNAL B, 2016, 89 (03): : 1 - 6
  • [50] ADAPTIVE PARTITIONED RANDOM SEARCH TO GLOBAL OPTIMIZATION
    TANG, ZB
    IEEE TRANSACTIONS ON AUTOMATIC CONTROL, 1994, 39 (11) : 2235 - 2244