arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.09819cs.DB
收藏

用于快速原型化数据库内算法的可扩展数据库模拟器

Extensible Database Simulator for Fast Prototyping In-Database Algorithms

Yifan Wang, Daisy Zhe Wang

摘要:

随着数据规模的快速增长,数据库内分析和学习已经成为数据科学界研究最多的课题之一,因为它对缩小数据管理和分析之间的差距具有重要意义。通过扩展数据库在分析和学习方面的能力,数据科学家可以节省大量在数据库和外部分析工具之间交换数据的时间。为了实现这一目标,研究人员正在尝试将更多的数据科学算法集成到数据库中。然而,在主流数据库中实现这些算法是非常耗时的,特别是当需要深入研究数据库内核时。因此,需要一个易于扩展的数据库模拟器,以帮助快速原型化和验证数据库中的算法,然后再将它们实现在真正的数据库中。在这个演示中,我们展示了这样一个可扩展的关系数据库模拟器DBSim,以帮助数据科学家原型化他们的数据库内分析和学习算法,并以最小的成本验证他们的想法的有效性。DBSim通过集成主流关系数据库系统中的所有主要组件,包括SQL解析器、关系运算符、查询优化器等,模拟出一个真实的关系数据库。此外,DBSim还提供了各种接口,使用户可以在不修改内核的情况下,灵活地将自定义扩展模块插入到任何一个主要组件中。通过这些接口,DBSim支持对SQL语法、关系运算符、查询优化器规则和成本模型以及物理计划执行的简单扩展。此外,DBSim还提供了查询计划可视化工具和优化规则交互分析器等实用工具,方便用户进行开发和调试。我们使用纯Python开发DBSim,以支持大多数数据科学算法的无缝实现,因为其中许多算法都是用Python编写的。

英文摘要:

With the rapid increasing of data scale, in-database analytics and learning has become one of the most studied topics in data science community, because of its significance on reducing the gap between the management and the analytics of data. By extending the capability of database on analytics and learning, data scientists can save much time on exchanging data between databases and external analytic tools. For this goal, researchers are attempting to integrate more data science algorithms into database. However, implementing the algorithms in mainstream databases is super time-consuming, especially when it is necessary to have a deep dive into the database kernels. Thus there are demands for an easy-to-extend database simulator to help fast prototype and verify the in-database algorithms before implementing them in real databases. In this demo, we present such an extensible relational database simulator, DBSim, to help data scientists prototype their in-database analytics and learning algorithms and verify the effectiveness of their ideas with minimal cost. DBSim simulates a real relational database by integrating all the major components in mainstream RDBMS, including SQL parser, relational operators, query optimizer, etc. In addition, DBSim provides various interfaces for users to flexibly plug their custom extension modules into any of the major components, without modifying the kernel. By those interfaces, DBSim supports easy extensions on SQL syntax, relational operators, query optimizer rules and cost models, and physical plan execution. Furthermore, DBSim provides utilities to facilitate users' developing and debugging, like query plan visualizer and interactive analyzer on optimization rules. We develop DBSim using pure Python to support seamless implementation of most data science algorithms into it, since many of them are written in Python.

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

↑