arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1703.03147cs.DBcs.DScs.LO
收藏

在数据库中处理函数

Juggling Functions Inside a Database

Mahmoud Abo Khamis, Hung Q. Ngo, Atri Rudra

摘要:

我们定义和研究的功能聚合查询(FAQ)的问题,它捕获了广泛的领域,包括关系数据库,逻辑,矩阵和张量计算,概率图形模型,约束满足,和信号处理的共同计算任务。简单地说,FAQ是一种从输入函数数据库中定义新函数的声明性方式。我们提出了“InsideOut”,一个动态规划算法,评估的FAQ。该算法将输入查询重写为一组查询到计算的FAQ子查询。每个子查询,然后使用最坏情况下的最佳关系连接算法进行评估。在过去的几年里,设计算法来优化经典的多路连接问题的主题已经取得了令人兴奋的发展。我们的框架将数据库理论中的这些新思想与大量的应用领域以一种连贯的方式紧密联系在一起,潜在地表明,一个好的数据库引擎可以同时是通用约束求解器、关系数据存储、图形模型推理引擎和矩阵/张量计算处理器。InsideOut算法非常简单,这将在本文中描述。然而,尽管解决了一个非常普遍的问题,它的运行时间要么是一样好,或改进后的最知名的算法的应用程序,FAQ专门。这些推论包括图形模型推理、矩阵/张量运算、关系连接和逻辑中的计算任务。更好的是,InsideOut可以在任何数据库引擎中使用,因为它基本上是重写查询的原则性方法。事实上,它已经是LogicBlox数据库引擎的一部分,帮助有效地回答传统的数据库查询,图形模型推理查询,并在数据库本身内部训练一大类机器学习模型。

英文摘要:

We define and study the Functional Aggregate Query (FAQ) problem, which captures common computational tasks across a very wide range of domains including relational databases, logic, matrix and tensor computation, probabilistic graphical models, constraint satisfaction, and signal processing. Simply put, an FAQ is a declarative way of defining a new function from a database of input functions. We present "InsideOut", a dynamic programming algorithm, to evaluate an FAQ. The algorithm rewrites the input query into a set of easier-to-compute FAQ sub-queries. Each sub-query is then evaluated using a worst-case optimal relational join algorithm. The topic of designing algorithms to optimally evaluate the classic multiway join problem has seen exciting developments in the past few years. Our framework tightly connects these new ideas in database theory with a vast number of application areas in a coherent manner, showing potentially that a good database engine can be a general-purpose constraint solver, relational data store, graphical model inference engine, and matrix/tensor computation processor all at once. The InsideOut algorithm is very simple, as shall be described in this paper. Yet, in spite of solving an extremely general problem, its runtime either is as good as or improves upon the best known algorithm for the applications that FAQ specializes to. These corollaries include computational tasks in graphical model inference, matrix/tensor operations, relational joins, and logic. Better yet, InsideOut can be used within any database engine, because it is basically a principled way of rewriting queries. Indeed, it is already part of the LogicBlox database engine, helping efficiently answer traditional database queries, graphical model inference queries, and train a large class of machine learning models inside the database itself.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑