arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.01476cs.DBcs.AIcs.LG
收藏

优化上下文增强的关系连接

Optimizing Context-Enhanced Relational Joins

EPFL(洛桑联邦理工学院)

Viktor Sanca, Manos Chatzakis, Anastasia Ailamaki

AI总结:

针对传统关系型DBMS难以处理关系型与多模态上下文数据的问题,提出上下文增强关系连接及可组合的嵌入运算符,实现混合数据处理与优化,通过实例验证整体优化可提升执行时间一个数量级。

摘要:

在数据处理流水线中,从关系型和富含上下文的多模态源收集数据、提取价值并整合见解,对传统关系型数据库管理系统(DBMS)构成挑战。虽然关系运算符支持声明式且可优化的查询规范,但它们局限于不适合捕获或分析上下文的数据转换。另一方面,表示学习模型可将富含上下文的数据映射为嵌入向量,实现机器自动化的上下文处理,但需要命令式数据转换与分析查询集成。为弥合这一矛盾,我们提出上下文增强的关系连接,并引入可与关系运算符组合的嵌入运算符。这支持混合关系型和富含上下文的向量数据处理,其代数等价性与关系代数兼容,并具有相应的逻辑和物理优化。我们研究了模型-运算符与向量数据处理的交互,分析了E-连接运算符的特性。以字符串嵌入为例,我们展示了在关系连接运算符上启用基于向量嵌入的混合上下文增强处理。从逻辑到物理的整体优化的重要性通过执行时间一个数量级的提升得到证明。

英文摘要:

Collecting data, extracting value, and combining insights from relational and context-rich multi-modal sources in data processing pipelines presents a challenge for traditional relational DBMS. While relational operators allow declarative and optimizable query specification, they are limited to data transformations unsuitable for capturing or analyzing context. On the other hand, representation learning models can map context-rich data into embeddings, allowing machine-automated context processing but requiring imperative data transformation integration with the analytical query. To bridge this dichotomy, we present a context-enhanced relational join and introduce an embedding operator composable with relational operators. This enables hybrid relational and context-rich vector data processing, with algebraic equivalences compatible with relational algebra and corresponding logical and physical optimizations. We investigate model-operator interaction with vector data processing and study the characteristics of the E-join operator. Using an example of string embeddings, we demonstrate enabling hybrid context-enhanced processing on relational join operators with vector embeddings. The importance of holistic optimization, from logical to physical, is demonstrated in an order of magnitude execution time improvement.

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

↑