On line analytical processing (OLAP) is an essential element of decision-support systems. OLAP tools provide insights and understanding needed for improved decision making. However, the answers to OLAP queries can be biased and lead to perplexing and incorrect insights. In this paper, we propose HypDB, a system to detect, explain, and to resolve bias in decision-support queries. We give a simple definition of a \emph{biased query}, which performs a set of independence tests on the data to detect bias. We propose a novel technique that gives explanations for bias, thus assisting an analyst in understanding what goes on. Additionally, we develop an automated method for rewriting a biased query into an unbiased query, which shows what the analyst intended to examine. In a thorough evaluation on several real datasets we show both the quality and the performance of our techniques, including the completely automatic discovery of the revolutionary insights from a famous 1973 discrimination case.
User Profile-Driven Data Warehouse Summary for Adaptive OLAP Queries
数据仓库是决策支持系统的重要组成部分。它旨在使用户的知识,使更好,更快的日常业务决策。为了改进该决策支持系统并向用户提供越来越多的相关信息,将用户的简档集成到数据仓库过程中的需要变得至关重要。在本文中,我们建议利用用户的喜好为基础,适应OLAP(在线分析处理)查询的用户。为此,我们提出了一种用户简档驱动的数据仓库方法,该方法允许将用户的配置文件由他/她的标识符和他/她的一组偏好组成。我们的方法是基于一个通用的数据仓库架构和一个自适应的OLAP分析系统。我们的主要思想是为每个用户创建一个数据仓库物化视图。当用户第一次定义他/她的配置文件时,该任务离线执行。然后,当用户向数据仓库提交查询时,系统处理他/她的数据仓库物化视图而不是整个数据仓库。换句话说,数据仓库视图通过考虑用户的偏好来为用户概括数据仓库内容。此外,我们正在SQL Server 2005 DBMS(数据库管理系统)下实现我们的数据仓库个性化方法。
A Comparative Exploration of ML Techniques for Tuning Query Degree of Parallelism
最近有大量的工作将机器学习(ML)技术应用于关系数据库管理系统(RDBMS)中的查询优化和查询性能预测。然而,这些工作通常忽略了\textit{intra-parallelism} --一个在实践中用于提高OLAP查询性能的关键组件--对查询性能预测的影响。在本文中,我们采取了第一步填补这一空白,通过研究的问题,\textit{tuning the degree of parallelism (DOP) via ML techniques}在Microsoft SQL Server,一个流行的商业关系数据库管理系统,允许一个单独的查询执行使用多个核心。在我们的研究中,我们将DOP调优问题转换为{ \em回归}任务,并研究了几种流行的ML模型如何在多核环境中帮助进行查询性能预测。我们探索设计空间,并进行了广泛的实验研究,比较不同的模型对性能指标的列表,测试他们如何在不同的设置推广:$(i)$查询从同一个模板,$(ii)$查询从一个新的模板,$(iii)$不同规模的实例,和$(iv)$不同的实例和查询。我们的实验结果表明,一个简单的特征化的输入查询计划,忽略成本模型估计可以准确地预测查询性能,捕获的加速趋势相对于可用的并行度,以及帮助自动选择一个最佳的每查询DOP。