Cobra: A Framework for Cost Based Rewriting of Database Applications
K. Venkatesh Emani, S. Sudarshan

TL;DR
Cobra is a framework that automatically generates and optimizes multiple equivalent database application implementations to select the most cost-effective one, improving performance.
Contribution
It introduces a novel framework extending algebraic optimization techniques to automatically generate and select optimal program rewrites for database applications.
Findings
Framework generates all equivalent program variants
Significant performance improvements demonstrated
Applicable to real-world database applications
Abstract
Database applications are typically written using a mixture of imperative languages and declarative frameworks for data processing. Application logic gets distributed across the declarative and imperative parts of a program. Often, there is more than one way to implement the same program, whose efficiency may depend on a number of parameters. In this paper, we propose a framework that automatically generates all equivalent alternatives of a given program using a given set of program transformations, and chooses the least cost alternative. We use the concept of program regions as an algebraic abstraction of a program and extend the Volcano/Cascades framework for optimization of algebraic expressions, to optimize programs. We illustrate the use of our framework for optimizing database applications. We show through experimental results, that our framework has wide applicability in real…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsOptimization and Search Problems · Distributed systems and fault tolerance · Cloud Computing and Resource Management
