Efficient Processing of Window Functions in Analytical SQL Queries

被引:22
|
作者
Leis, Viktor [1 ]
Kundhikanjana, Kan [1 ]
Kemper, Alfons [1 ]
Neumann, Thomas [1 ]
机构
[1] Tech Univ Munich, D-80290 Munich, Germany
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2015年 / 8卷 / 10期
关键词
D O I
10.14778/2794367.2794375
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Window functions, also known as analytic OLAP functions, have been part of the SQL standard for more than a decade and are now a widely-used feature. Window functions allow to elegantly express many useful query types including time series analysis, ranking, percentiles, moving averages, and cumulative sums. Formulating such queries in plain SQL-92 is usually both cumbersome and inefficient. Despite being supported by all major database systems, there have been few publications that describe how to implement an efficient relational window operator. This work aims at filling this gap by presenting an efficient and general algorithm for the window operator. Our algorithm is optimized for high-performance main-memory database systems and has excellent performance on modern multi-core CPUs. We show how to fully parallelize all phases of the operator in order to effectively scale for arbitrary input distributions.
引用
收藏
页码:1058 / 1069
页数:12
相关论文
共 50 条
  • [21] Efficient Processing of Metric Skyline Queries
    Chen, Lei
    Lian, Xiang
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2009, 21 (03) : 351 - 365
  • [22] DrillBeyond: Processing Multi-Result Open World SQL Queries
    Eberius, Julian
    Thiele, Maik
    Braunschweig, Katrin
    Lehner, Wolfgang
    PROCEEDINGS OF THE 27TH INTERNATIONAL CONFERENCE ON SCIENTIFIC AND STATISTICAL DATABASE MANAGEMENT, 2015,
  • [23] Efficient processing of -hop reachability queries
    Cheng, James
    Shang, Zechao
    Cheng, Hong
    Wang, Haixun
    Yu, Jeffrey Xu
    VLDB JOURNAL, 2014, 23 (02): : 227 - 252
  • [24] Auditing SQL queries
    Motwani, Rajeev
    Nabar, Shubha U.
    Thomas, Dilys
    2008 IEEE 24TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, VOLS 1-3, 2008, : 287 - +
  • [25] Similarity Aware Shuffling for the Distributed Execution of SQL Window Functions
    Coelho, Fabio
    Matos, Miguel
    Pereira, Jose
    Oliveira, Rui
    DISTRIBUTED APPLICATIONS AND INTEROPERABLE SYSTEMS, DAIS 2017, 2017, 10320 : 3 - 18
  • [26] X2S: Translating XPath into efficient SQL queries
    Gao, J
    Yang, DQ
    Liu, YF
    CONCEPTUAL MODELING FOR ADVANCED APPLICATION DOMAINS, PROCEEDINGS, 2004, 3289 : 210 - 222
  • [27] Efficiently Window Queries Processing in Dynamic Wireless Sensor Networks
    Liu, Ning-Han
    INTERNATIONAL JOURNAL OF GRID AND DISTRIBUTED COMPUTING, 2013, 6 (01): : 13 - 24
  • [28] Real-Time Analytical Processing with SQL Server
    Larson, Per-Ake
    Birka, Adrian
    Hanson, Eric N.
    Huang, Weiyun
    Nowakiewicz, Michal
    Papadimos, Vassilis
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2015, 8 (12): : 1740 - 1751
  • [29] WFApprox: Approximate Window Functions Processing
    Lin, Chunbo
    Li, Jingdong
    Wang, Xiaoling
    Lu, Xingjian
    Zhang, Ji
    DATABASE SYSTEMS FOR ADVANCED APPLICATIONS (DASFAA 2020), PT I, 2020, 12112 : 72 - 87
  • [30] Efficient Processing of Spatial Group Preference Queries
    Zhang, Zhou
    Jin, Peiquan
    Tian, Yuan
    Wan, Shouhong
    Yue, Lihua
    DATABASE SYSTEMS FOR ADVANCED APPLICATIONS (DASFAA 2019), PT II, 2019, 11447 : 642 - 659