CAQE: A Contract Driven Approach to Processing Concurrent Decision Support Queries

Venkatesh Raghavan, Elke A. Rundensteiner

Abstract

In real-time decision support environments, users frequently execute concurrent "skyline" queries to identify optimal results across multiple conflicting criteria. Traditional Multi-Query Processing (MQP) techniques often fail to account for varying user-defined performance requirements, such as strict deadlines or desired result rates. We propose CAQE (Contract-Aware Query Execution), a novel framework that treats user requirements as formal "contracts." By employing a shared execution plan, coarse-grained data pruning, and a feedback-driven optimizer, CAQE maximizes overall workload satisfaction. Experimental results demonstrate that CAQE provides up to a 2x improvement in user satisfaction and significant reductions in computational overhead compared to state-of-the-art methods.

Introduction

Decision support systems for applications like travel planning or financial trading rely on skyline queries to find non-dominated results—items that are not strictly worse than any other in all dimensions. However, executing these queries over joined data is computationally intensive and typically "blocking," meaning final results cannot be confirmed until the entire dataset is processed.

Furthermore, concurrent users often have diverse needs. One user might require a few results immediately (progressive delivery), while another may have a hard deadline. Existing systems often treat all queries uniformly or use "blind" pipelining, leading to missed deadlines and poor resource allocation when requirements conflict.

The CAQE Framework

CAQE addresses these challenges by shifting from tuple-at-a-time processing to a contract-driven model. The system architecture is designed to balance shared computation with individual query urgency.

The CAQE framework architecture, showing the interaction between the shared plan generator, the look-ahead module, and the contract-driven optimizer.

Flexible Contract Model

At the core of CAQE is a formalization of user requirements into utility functions ($\vartheta$). These functions map system performance (e.g., time elapsed or results produced) to a satisfaction score between 0 and 1.

  • Time-based contracts: Define utility based on deadlines or temporal decay.
  • Cardinality-based contracts: Define utility based on the number of results delivered per time unit.
Examples of time-based utility functions: (a) a hard deadline at 30 minutes, and (b) a soft deadline with utility decay after 30 minutes.

Shared Execution and Optimization

CAQE utilizes several key components to optimize multi-query execution:

  1. Shared Min-Max Cuboid Plan: A lattice structure identifies overlapping dimensions across queries, ensuring that expensive joins and comparisons are performed only once for the entire workload.
  2. Multi-Query Output Look Ahead (MQLA): The system analyzes data in "chunks" (cells) to identify which regions are likely to contain skyline results for specific queries, allowing for aggressive pruning.
  3. Contract-Driven Optimizer: A greedy optimizer uses a Cumulative Satisfaction Metric (CSM) and a dependency graph to prioritize data chunks. This graph tracks how results in one region might dominate results in another across multiple queries.
  4. Feedback Loop: The system dynamically adjusts priorities based on real-time contract satisfaction, ensuring that lagging queries receive more resources.

Experimental Evaluation

The authors evaluated CAQE using standard skyline datasets with independent, correlated, and anti-correlated distributions. The workload included up to 11 concurrent queries with varying priorities and cardinalities up to 500,000 tuples.

Key Results

  • User Satisfaction: CAQE consistently outperformed state-of-the-art techniques like JFSL and ProgXe+, delivering 2x higher satisfaction scores.
  • Computational Efficiency: The framework generated 20x fewer intermediate join results and conducted 17x fewer skyline comparisons than existing methods.
  • Speed: In many scenarios, CAQE was at least 2x faster than its closest competitor and 24x better than traditional non-sharing approaches.
  • Scalability: As the number of concurrent queries increased, CAQE showed a much smaller performance drop (20-30%) compared to competitors who suffered up to an 85% regression.

Conclusion

CAQE demonstrates that combining shared execution with contract-awareness is essential for satisfying real-time decision support requirements. By pruning data at a coarse level and using a feedback-driven optimizer, the system significantly reduces redundant work while respecting individual user constraints. Future work will explore extending these principles to other complex query types, such as top-K and spatial preference queries.

Summary updated

BibTeX
@inproceedings{raghavan2014caqe,
  author = {Venkatesh Raghavan and Elke A. Rundensteiner},
  title = {{CAQE: A Contract Driven Approach to Processing Concurrent Decision Support Queries}},
  booktitle = {EDBT},
  year = {2014},
  doi = {10.5441/002/edbt.2014.12},
}
Figure