arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2007.10385cs.DB
收藏

Support Aggregate Analytic Window Function over Large Data by Spilling

Xing Shi, Chao Wang

英文摘要:

Analytic function, also called window function, is to query the aggregation of data over a sliding window. For example, a simple query over the online stock platform is to return the average price of a stock of the last three days. These functions are commonly used features in SQL databases. They are supported in most of the commercial databases. With the increasing usage of cloud data infra and machine learning technology, the frequency of queries with analytic window functions rises. Some analytic functions only require const space in memory to store the state, such as SUM, AVG, while others require linear space, such as MIN, MAX. When the window is extremely large, the memory space to store the state may be too large. In this case, we need to spill the state to disk, which is a heavy operation. In this paper, we proposed an algorithm to manipulate the state data in the disk to reduce the disk I/O to make spill available and efficienct. We analyze the complexity of the algorithm with different data distribution.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑