Querying Graph-Relational Data

📅 2025-07-21
📈 Citations: 0
Influential: 0
📄 PDF

career value

167K/year
🤖 AI Summary
Relational databases’ flat data model exhibits impedance mismatch with the nested data structures required by modern applications. This paper introduces the graph-relational database model, which unifies the formal rigor of the relational model with the expressive power of graph-structured nesting to support composable, type-safe complex queries. Our approach comprises three core contributions: (1) EdgeQL—a statically typed, SQL-like query language designed for expressive, safe navigation and transformation of nested, graph-shaped data; (2) the Gel compiler system, which jointly compiles EdgeQL schemas and queries—incorporating both static and dynamic semantics—into highly optimized, native PostgreSQL SQL; and (3) end-to-end type safety without runtime overhead, achieving execution performance comparable to hand-written SQL. Experimental evaluation demonstrates that our system substantially outperforms conventional ORMs, delivering superior balance among query expressivity, developer productivity, and runtime efficiency.

Technology Category

Application Category

📝 Abstract
For applications that store structured data in relational databases, there is an impedance mismatch between the flat representations encouraged by relational data models and the deeply nested information that applications expect to receive. In this work, we present the graph-relational database model, which provides a flexible, compositional, and strongly-typed solution to this "object-relational mismatch." We formally define the graph-relational database model and present a static and dynamic semantics for queries. In addition, we discuss the realization of the graph-relational database model in EdgeQL, a general-purpose SQL-style query language, and the Gel system, which compiles EdgeQL schemas and queries into PostgreSQL queries. Gel facilitates the kind of object-shaped data manipulation that is frequently provided inefficiently by object-relational mapping (ORM) technologies, while achieving most of the efficiency that comes from require writing complex PostgreSQL queries directly.
Problem

Research questions and friction points this paper is trying to address.

Resolves impedance mismatch between relational and nested data models
Introduces graph-relational model for flexible strongly-typed queries
Enables efficient object-shaped data manipulation via EdgeQL and Gel
Innovation

Methods, ideas, or system contributions that make the work stand out.

Introduces graph-relational database model
Develops EdgeQL SQL-style query language
Uses Gel system for PostgreSQL compilation
🔎 Similar Papers
No similar papers found.
M
Michael J. Sullivan
Gel Data, USA
Z
Zhibo Chen
Carnegie Mellon University, USA
E
Elvis Pranskevichus
Gel Data, USA
Robert J. Simmons
Robert J. Simmons
Owl and Crow Productions, USA
V
Victor Petrovykh
Gel Data, Canada
A
Aljaž Mur Eržen
Gel Data, Slovenia
Y
Yury Selivanov
Gel Data, USA