{"id":{"repo_id":"duke","oai_identifier":"oai:dukespace.lib.duke.edu:10161/19797"},"canonical_url":"https://search.ndltd.org/etd/duke/oai:dukespace.lib.duke.edu:10161/19797","repository":{"repo_id":"duke","name":"Duke University","base_url":"https://dukespace.lib.duke.edu/server/oai/request"},"display":{"title":"Perturbation Analysis of Database Queries","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>","abstract_html":"&lt;p&gt;Data-driven decision making plays a dominant role across all domains, from health,&lt;/p&gt;&lt;p&gt;business, government, to sports. High impact decisions, decisions that may affect&lt;/p&gt;&lt;p&gt;an entire organization, are now being automated by analytical queries. A bank&lt;/p&gt;&lt;p&gt;account may be shut down if a query determines there may be fraudulent activity, a&lt;/p&gt;&lt;p&gt;sporting event may decrease ticket costs if the rate of ticket sales is not fast enough.&lt;/p&gt;&lt;p&gt;These data-driven decisions are often ad-hoc and resource intensive: a bank has to&lt;/p&gt;&lt;p&gt;compare and analyze all users, sporting events might use previous events to estimate&lt;/p&gt;&lt;p&gt;an acceptable ticket sales rate.&lt;/p&gt;&lt;p&gt;In this dissertation, I describe efficient methods for optimizing analytic queries&lt;/p&gt;&lt;p&gt;where the query has a complex user-defined function or join. I introduce an analysis&lt;/p&gt;&lt;p&gt;methodology for queries called query perturbation analysis. Query perturbation&lt;/p&gt;&lt;p&gt;analysis models a query as a collection of parameter settings rather than a collection&lt;/p&gt;&lt;p&gt;of database relations. In this model, a query conceptually involves evaluating the&lt;/p&gt;&lt;p&gt;same query template multiple times using perturbed parameter settings.&lt;/p&gt;&lt;p&gt;I begin with a discussion of the motivation for modeling complex database queries&lt;/p&gt;&lt;p&gt;in a perturbation analysis framework. Perturbation analysis often produces an effi-&lt;/p&gt;&lt;p&gt;cient and natural (to the end user) way to break down complex queries into isolated&lt;/p&gt;&lt;p&gt;parameterized queries. Analytical queries such as analyzing performance in sports,&lt;/p&gt;&lt;p&gt;or efficiently finding nearest neighbors to identify intrusion attacks in computer net-&lt;/p&gt;&lt;p&gt;works, are prime candidates for perturbation analysis.&lt;/p&gt;&lt;p&gt;I start by describing optimizations introduced by modeling a problem using per-&lt;/p&gt;&lt;p&gt;turbation analysis. I discuss four common optimizations to query perturbation anal-&lt;/p&gt;&lt;p&gt;ysis: parallelization, memoization, grouping, and pruning. Each optimization can be&lt;/p&gt;&lt;p&gt;used in different scenarios and under different constraints. I provide examples where&lt;/p&gt;&lt;p&gt;each optimization can be used.&lt;/p&gt;&lt;p&gt;I show how to tackle this problem from three distinct angles: as a distributed&lt;/p&gt;&lt;p&gt;system, within a database system, and using approximation methods.&lt;/p&gt;&lt;p&gt;As a distributed system, I introduce Perada, a system for perturbation analysis&lt;/p&gt;&lt;p&gt;which exposes these common optimizations and simplifies the development of general,&lt;/p&gt;&lt;p&gt;ad hoc perturbation analysis jobs. I first describe how to specify and interact with the&lt;/p&gt;&lt;p&gt;underlying optimizations, and then describe the implications of each optimization to&lt;/p&gt;&lt;p&gt;job performance. Perada hides this job performance complexity by runtime tuning&lt;/p&gt;&lt;p&gt;of optimizations through multiple stages and on/off switches for optimizations. I&lt;/p&gt;&lt;p&gt;describe this runtime strategy to balance tradeoffs of various optimizations and the&lt;/p&gt;&lt;p&gt;performance gain from a naive always-on strategy.&lt;/p&gt;&lt;p&gt;Within a database system, I push perturbation analysis through a SQL optimizer&lt;/p&gt;&lt;p&gt;and show how a certain class of queries called iceberg queries can be rewritten for&lt;/p&gt;&lt;p&gt;an order of magnitude decrease in execution time. I describe specific constraints and&lt;/p&gt;&lt;p&gt;requirements to first identify iceberg queries and ensure that rewritten execution&lt;/p&gt;&lt;p&gt;returns the same set as a traditional SQL compiler.&lt;/p&gt;&lt;p&gt;Using approximation methods, I describe solutions to approximately count per-&lt;/p&gt;&lt;p&gt;turbation analysis queries, and push the approach to a general class of queries with&lt;/p&gt;&lt;p&gt;expensive filters. All approaches rely on constructing a fast, probabilistic classifier&lt;/p&gt;&lt;p&gt;in place of the expensive filter and classifying individual perturbations. Using the&lt;/p&gt;&lt;p&gt;trained classifier, I describe two approaches to approximately count perturbation&lt;/p&gt;&lt;p&gt;analysis queries. Quantification learning uses the classifier directly to count the pre-&lt;/p&gt;&lt;p&gt;dicted labels. Sampling uses the classifier to create unequal probability sampling&lt;/p&gt;&lt;p&gt;schemes to produce highly accurate, low variance estimates.&lt;/p&gt;&lt;p&gt;For each distinct angle, I provide empirical results that show the effectiveness&lt;/p&gt;&lt;p&gt;of perturbation analysis in data systems. This dissertation shows that perturbation&lt;/p&gt;&lt;p&gt;analysis is a practical alternative method to traditional query execution techniques&lt;/p&gt;&lt;p&gt;and can be used in diverse settings: distributed, SQL, and approximated.&lt;/p&gt;","abstract_has_math":false,"creators":["Walenz, Brett"],"institution":null,"degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":"Computer Science","school":null,"contributors":[],"advisors":["Yang, Jun"],"committee_chairs":[],"committee_members":[],"year":2019,"date_issued":"2019","date_published":"2019","updated_at":"2026-11-19T08:25:08Z","subjects":["Computer science"],"languages":[],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10161/19797","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10161/19797","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aduke%3Aoai%3Adukespace.lib.duke.edu%3A10161%2F19797","prefix":"oai_dc"},"source_record":{"url":"https://dukespace.lib.duke.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adukespace.lib.duke.edu%3A10161%2F19797","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Yang, Jun"]},{"key":"dc:contributor.department","label":"Department","values":["Computer Science"]},{"key":"dc:creator","label":"Author","values":["Walenz, Brett"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2020-01-27T16:51:50Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2020-01-27T16:51:50Z"]},{"key":"dc:date.issued","label":"Date","values":["2019"]},{"key":"dc:type","label":"Dc Type","values":["Dissertation"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Computer science"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10161/19797"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["<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>"]},{"key":"dc:title","label":"Title","values":["Perturbation Analysis of Database Queries"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Yang, Jun"],"dc:contributor.department":["Computer Science"],"dc:creator":["Walenz, Brett"],"dc:date.accessioned":["2020-01-27T16:51:50Z"],"dc:date.available":["2020-01-27T16:51:50Z"],"dc:date.issued":["2019"],"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>"],"dc:identifier.uri":["https://hdl.handle.net/10161/19797"],"dc:subject":["Computer science"],"dc:title":["Perturbation Analysis of Database Queries"],"dc:type":["Dissertation"],"others:access_status":["open.access"]},"updated_at":"2026-11-19T08:25:08Z"}