Abstract
dc:description.abstract<p>Data-driven decision making plays a dominant role across all domains, from health,</p><p>business, government, to sports. High impact decisions, decisions that may affect</p><p>an entire organization, are now being automated by analytical queries. A bank</p><p>account may be shut down if a query determines there may be fraudulent activity, a</p><p>sporting event may decrease ticket costs if the rate of ticket sales is not fast enough.</p><p>These data-driven decisions are often ad-hoc and resource intensive: a bank has to</p><p>compare and analyze all users, sporting events might use previous events to estimate</p><p>an acceptable ticket sales rate.</p><p>In this dissertation, I describe efficient methods for optimizing analytic queries</p><p>where the query has a complex user-defined function or join. I introduce an analysis</p><p>methodology for queries called query perturbation analysis. Query perturbation</p><p>analysis models a query as a collection of parameter settings rather than a collection</p><p>of database relations. In this model, a query conceptually involves evaluating the</p><p>same query template multiple times using perturbed parameter settings.</p><p>I begin with a discussion of the motivation for modeling complex database queries</p><p>in a perturbation analysis framework. Perturbation analysis often produces an effi-</p><p>cient and natural (to the end user) way to break down complex queries into isolated</p><p>parameterized queries. Analytical queries such as analyzing performance in sports,</p><p>or efficiently finding nearest neighbors to identify intrusion attacks in computer net-</p><p>works, are prime candidates for perturbation analysis.</p><p>I start by describing optimizations introduced by modeling a problem using per-</p><p>turbation analysis. I discuss four common optimizations to query perturbation anal-</p><p>ysis: parallelization, memoization, grouping, and pruning. Each optimization can be</p><p>used in different scenarios and under different constraints. I provide examples where</p><p>each optimization can be used.</p><p>I show how to tackle this problem from three distinct angles: as a distributed</p><p>system, within a database system, and using approximation methods.</p><p>As a distributed system, I introduce Perada, a system for perturbation analysis</p><p>which exposes these common optimizations and simplifies the development of general,</p><p>ad hoc perturbation analysis jobs. I first describe how to specify and interact with the</p><p>underlying optimizations, and then describe the implications of each optimization to</p><p>job performance. Perada hides this job performance complexity by runtime tuning</p><p>of optimizations through multiple stages and on/off switches for optimizations. I</p><p>describe this runtime strategy to balance tradeoffs of various optimizations and the</p><p>performance gain from a naive always-on strategy.</p><p>Within a database system, I push perturbation analysis through a SQL optimizer</p><p>and show how a certain class of queries called iceberg queries can be rewritten for</p><p>an order of magnitude decrease in execution time. I describe specific constraints and</p><p>requirements to first identify iceberg queries and ensure that rewritten execution</p><p>returns the same set as a traditional SQL compiler.</p><p>Using approximation methods, I describe solutions to approximately count per-</p><p>turbation analysis queries, and push the approach to a general class of queries with</p><p>expensive filters. All approaches rely on constructing a fast, probabilistic classifier</p><p>in place of the expensive filter and classifying individual perturbations. Using the</p><p>trained classifier, I describe two approaches to approximately count perturbation</p><p>analysis queries. Quantification learning uses the classifier directly to count the pre-</p><p>dicted labels. Sampling uses the classifier to create unequal probability sampling</p><p>schemes to produce highly accurate, low variance estimates.</p><p>For each distinct angle, I provide empirical results that show the effectiveness</p><p>of perturbation analysis in data systems. This dissertation shows that perturbation</p><p>analysis is a practical alternative method to traditional query execution techniques</p><p>and can be used in diverse settings: distributed, SQL, and approximated.</p>
Degree
thesis:*- Department dc:contributor.department
- Computer Science
- Year dc:date.issued
- 2019
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Walenz, Brett
- Advisor dc:contributor.advisor
-
- Yang, Jun
Subjects
dc:subject × 1Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10161/19797