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

CHASE:一种面向结构化与非结构化数据混合查询的原生关系数据库

CHASE: A Native Relational Database for Hybrid Queries on Structured and Unstructured Data

Rui Ma, Kai Zhang, Zhenying He, Yinan Jing, X. Sean Wang, Zhenqiang Chen

AI总结:

本文提出原生关系数据库 CHASE,通过查询语义分析、新物理算子和编译优化支持结构化与非结构化混合查询,较现有系统最高加速 7500 倍。

摘要:

同时查询结构化与非结构化数据已成为数据分析和推荐领域的一种新范式。对于文本、视频等非结构化数据,它们会被转换为高维向量,并通过近似最近邻搜索(ANNS)进行查询。最先进的数据库系统将向量搜索作为关系查询引擎中的插件来实现,试图利用 ANN 索引提升性能。在研究了广泛的混合查询后,我们发现此类设计可能错失潜在优化机会,并在某些查询上只能达到次优性能。本文提出 CHASE,这是一种原生设计的查询引擎,用于高效支持结构化与非结构化数据上的混合查询。CHASE 在查询处理的多个阶段进行了专门设计与优化。首先,执行语义分析以对查询分类并动态优化查询计划。其次,实现新的物理算子,以避免现有算子中存在的冗余计算。第三,采用基于编译的技术来高效生成机器码。使用真实数据集进行的大量评估表明,CHASE 实现了显著的性能提升;与现有系统相比,其加速比从 13% 到惊人的 7500 倍不等。这些结果凸显了 CHASE 作为执行混合查询的稳健解决方案的潜力。

英文摘要:

Querying both structured and unstructured data has become a new paradigm in data analytics and recommendation. With unstructured data, such as text and videos, are converted to high-dimensional vectors and queried with approximate nearest neighbor search (ANNS). State-of-the-art database systems implement vector search as a plugin in the relational query engine, which tries to utilize the ANN index to enhance performance. After investigating a broad range of hybrid queries, we find that such designs may miss potential optimization opportunities and achieve suboptimal performance for certain queries. In this paper, we propose CHASE, a query engine that is natively designed to support efficient hybrid queries on structured and unstructured data. CHASE performs specific designs and optimizations on multiple stages in query processing. First, semantic analysis is performed to categorize queries and optimize query plans dynamically. Second, new physical operators are implemented to avoid redundant computations, which is the case with existing operators. Third, compilation-based techniques are adopted for efficient machine code generation. Extensive evaluations using real-world datasets demonstrate that CHASE achieves substantial performance improvements, with speedups ranging from 13% to an extraordinary 7500 times compared to existing systems. These results highlight CHASE's potential as a robust solution for executing hybrid queries.

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

↑