Introduction
For decades, database research has focused on maximizing performance under a fixed set of resources—essentially treating infrastructure as a sunk cost. However, the migration to the public cloud and its "pay-as-you-go" pricing model has fundamentally changed this dynamic. Today, operational cost is a highly variable and controllable factor. This vision paper argues that cloud data warehouses must treat monetary cost as a first-class optimization metric alongside performance, proposing a blueprint for a "cost-intelligent" database architecture.
The Problem: Coarse-Grained Provisioning
Despite the elasticity of the cloud, current data warehouses like Snowflake or BigQuery still rely on coarse-grained resource provisioning. Users are often forced to choose from "T-shirt" cluster sizes (e.g., S, M, L, XL). This leaves the burden of cost optimization entirely on the user, who typically over-provisions resources to guarantee performance SLAs. Traditional database auto-tuning tools also fail to frame their benefits in terms of dollar savings, making it difficult for users to evaluate the financial trade-offs of applying them.
The authors focus specifically on optimizing User-Observable Cost (UOC)—the actual cloud bill the user pays—rather than the backend infrastructure costs borne by the cloud provider. The goal is to help users automatically navigate the Pareto frontier of query latency and cloud bills.
A Blueprint for Cost-Intelligent Architecture
The proposed system features four key components designed to bridge the gap between technical performance and financial efficiency:
- Bi-Objective Query Optimizer: Instead of just finding the fastest plan, the optimizer balances latency and budget. It simplifies the search space by finding the cheapest plan that meets a specific SLA.
- Lightweight Cost Estimator: This module predicts both time and monetary cost using simple, explainable mathematical models (like operator scalability formulas) rather than black-box machine learning, ensuring system decisions remain interpretable.
- Dynamic Cluster Resizing (DOP Monitor): Rather than scaling an entire cluster, the system adjusts the Degree of Parallelism (DOP) at the pipeline granularity at runtime. It can dynamically allocate more or fewer nodes to specific execution stages based on real-time metrics.
- Cost-Oriented Auto-Tuning: A background service that uses dollars as a universal metric. It evaluates whether the compute cost saved by a tuning action (like maintaining a materialized view) outweighs the cost required to maintain it.
Key Insights and Empirical Evidence
Using the TPC-H benchmark (Scale Factor 100), the authors demonstrated the non-linear relationship between cluster size, query latency, and monetary cost. A critical finding is the "L-shaped" latency-cost curve: adding more compute nodes yields diminishing returns. Due to network bottlenecks and Amdahl's Law, scaling out eventually stops improving performance but continues to linearly increase the monetary cost.
Motivational experiments running TPC-H queries on Prestissimo (Velox) across clusters ranging from 1 to 20 nodes proved the necessity of fine-grained scaling. For example, scaling a cluster beyond approximately 8 workers for certain queries resulted in a rapid increase in cumulative worker time (a proxy for dollar cost) with almost zero improvement in query latency. This perfectly illustrates the financial danger of static sizing.
Conclusion and Future Work
The primary contribution of this work is the architectural roadmap for a cost-intelligent database. While the system is currently a blueprint being developed at Tsinghua University, it addresses critical challenges such as cost estimation accuracy and profiling overhead. Future work will focus on building out the pipeline-level DOP monitor and refining explainable cost-estimation models to provide a truly automated, cost-aware data analytics experience.
Summary updated