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

为图数据库提供正确的算法支持

Algorithm Support for Graph Databases, Done Right

Eindhoven University of Technology(埃因霍温理工大学);Delft University of Technology(代尔夫特理工大学)

Daan de Graaf, Robert Brijder, Soham Chakraborty, George Fletcher, Bram van de Wall, Nikolay Yakovets

AI总结:

GraphAlg是一种用于图数据库的领域特定语言,通过编译为关系代数,实现高效的图算法处理与查询整合。

摘要:

图数据库查询语言无法表达像PageRank这样的算法,导致需要耗费成本的数据处理。现有的解决方案如算法库、顶点中心API和递归CTE缺乏必要的表达力、性能和易用性。我们提出了GraphAlg:一种专门用于图算法的领域特定语言,它可以编译为关系代数,从而无缝集成到查询处理流程中。基于线性代数基础,GraphAlg提供了直观的矩阵操作,这些操作可以进行激进的优化,包括稀疏性分析、循环不变式代码运动和原地聚合。我们的在AvantGraph上的实现相比SQL/Python和Pregel显示出显著的代码复杂度降低,同时在LDBC Graphalytics基准测试中实现了出色的性能。GraphAlg证明了图数据库可以作为查询和分析的统一平台。

英文摘要:

Graph database query languages cannot express algorithms like PageRank, forcing costly data wrangling, while existing solutions such as algorithm libraries, vertex-centric APIs, and recursive CTEs lack the necessary combination of expressiveness, performance, and usability. We present GraphAlg: a domain-specific language for graph algorithms that compiles to relational algebra, enabling seamless integration with query processing pipelines. Built on linear algebra foundations, GraphAlg provides intuitive matrix operations that are amenable to aggressive optimization including sparsity analysis, loop-invariant code motion, and in-place aggregation. Our implementation in AvantGraph demonstrates significant code complexity reduction compared to SQL/Python and Pregel while achieving excellent performance on LDBC Graphalytics benchmarks. GraphAlg establishes that graph databases can serve as unified platforms for both queries and analytics.

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

↑