@inproceedings{c07474b338fa4e3c8b1b0052dd9a1e42,
title = "Optimizing window aggregate functions via random sampling",
abstract = "Window functions have been a part of the SQL standard since 2003 and have been well studied during the past decade. As the demand increases in analytics tools, window functions have seen an increasing amount of potential applications. Although the current mainstream commercial databases support window functions, the existing implementation strategies are inefficient for the real-time processing of big data. Recently, some algorithms based on sampling (e.g., online aggregation) have been proposed to deal with large and complex data in relational databases, which offer us a flexible tradeoff between accuracy and efficiency. However, sampling techniques have not been considered for window functions in databases. In this paper, we first propose two algorithms to deal with window functions based on two sampling techniques, Naive Random Sampling and Incremental Random Sampling. The proposed algorithms are highly efficient and are general enough to aggregate other existing algorithms of window functions. In particular, we evaluated our algorithms in the latest version of PostgreSQL, which demonstrated superior performance over the TPC-H benchmark.",
keywords = "Query optimization, Sample, Window function",
author = "Guangxuan Song and Wenwen Qu and Yilin Wang and Xiaoling Wang",
note = "Publisher Copyright: {\textcopyright} Springer International Publishing AG 2017.; 1st Asia-Pacific Web and Web-Age Information Management Joint Conference on Web and Big Data, APWeb-WAIM 2017 ; Conference date: 07-07-2017 Through 09-07-2017",
year = "2017",
doi = "10.1007/978-3-319-63564-4\_19",
language = "英语",
isbn = "9783319635637",
series = "Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)",
publisher = "Springer Verlag",
pages = "229--244",
editor = "Jensen, \{Christian S.\} and Xiang Lian and Lei Chen and Cyrus Shahabi and Xiaochun Yang",
booktitle = "Web and Big Data - 1st International Joint Conference, APWeb-WAIM 2017, Proceedings",
address = "德国",
}