Cost-based Query Rewriting Techniques for Optimizing Aggregates Over Correlated Windows

08/27/2020
by   Wentao Wu, et al.
0

Window aggregates are ubiquitous in stream processing. In Azure Stream Analytics (ASA), a stream processing service hosted by Microsoft's Azure cloud, we see many customer queries that contain aggregate functions (such as MIN and MAX) over multiple correlated windows (e.g., tumbling windows of length five minutes and ten minutes) defined on the same event stream. In this paper, we present a cost-based optimization framework for optimizing such queries by sharing computation among multiple windows. Since our optimization techniques are at the level of query rewriting, they can be implemented on any stream processing system that supports a declarative, SQL-like query language without changing the underlying query execution engine. We formalize the shared computation problem, present the optimization techniques in detail, and report evaluation results over synthetic workloads.

READ FULL TEXT

page 10

page 12

research
09/14/2018

Approximate Query Processing over Static Sets and Sliding Windows

Indexing of static and dynamic sets is fundamental to a large set of app...
research
04/15/2021

Optimizing Multiple Multi-Way Stream Joins

We address the joint optimization of multiple stream joins in a scale-ou...
research
06/11/2023

Scheduling of Intermittent Query Processing

Stream processing is usually done either on a tuple-by-tuple basis or in...
research
11/08/2021

CORE: a COmplex event Recognition Engine

Complex Event Recognition (CER) systems are a prominent technology for f...
research
05/17/2022

Journey of Migrating Millions of Queries on The Cloud

Treasure Data is processing millions of distributed SQL queries every da...
research
05/22/2018

Cache-based Multi-query Optimization for Data-intensive Scalable Computing Frameworks

In modern large-scale distributed systems, analytics jobs submitted by v...
research
04/11/2020

Optimizing Cursor Loops in Relational Databases

Loops that iterate over SQL query results are quite common, both in appl...

Please sign up or login with your details

Forgot password? Click here to reset