Optimization of Analytic Window Functions
Yu Cao, Chee-Yong Chan, Jie Li, Kian-Lee Tan

TL;DR
This paper introduces optimized techniques for evaluating window functions in SQL, significantly improving performance over traditional methods, and demonstrates their effectiveness through integration into PostgreSQL and extensive experiments.
Contribution
The paper presents novel optimization techniques for window functions, integrated into PostgreSQL, enabling faster evaluation compared to existing naive sorting approaches.
Findings
Significant speedup over existing window function evaluation methods.
Effective optimization strategies for multiple window functions.
Validated improvements on TPC-DS and synthetic datasets.
Abstract
Analytic functions represent the state-of-the-art way of performing complex data analysis within a single SQL statement. In particular, an important class of analytic functions that has been frequently used in commercial systems to support OLAP and decision support applications is the class of window functions. A window function returns for each input tuple a value derived from applying a function over a window of neighboring tuples. However, existing window function evaluation approaches are based on a naive sorting scheme. In this paper, we study the problem of optimizing the evaluation of window functions. We propose several efficient techniques, and identify optimization opportunities that allow us to optimize the evaluation of a set of window functions. We have integrated our scheme into PostgreSQL. Our comprehensive experimental study on the TPC-DS datasets as well as synthetic…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Database Systems and Queries · Data Management and Algorithms · Data Quality and Management
