On the Optimization of Recursive Relational Queries

Abstract : Graph databases have received a lot of attention recently as they are particularly useful in many applications such as social networks or for the semantic web. Various languages have emerged to query such graph databases. At the heart of many of those query languages, there is a construction to navigate through the graph which allows some form of recursion. The relational model has benefited from a huge body of research in the last half century and that is why many graph databases either rely on (or have adopted the techniques of) relational based query engines. Since its introduction, the relational model has seen various attempts to extend it with recursion and it is now possible to use recursion in several SQL or Datalog based database systems. The optimization of recursive queries remains, however, a challenge. In this paper, we introduce μ-RA, a variation of the Re- lational Algebra that allows for the expression of relational queries with recursion. μ-RA can express unions of con- junctive regular path queries as well as certain non-regular properties. We present its syntax, semantics and the rewriting rules we specifically devised to tackle the optimization of recursive queries. A prototype evaluator implementing these rewriting rules is shown to be more efficient than previous approaches.
Document type :
Conference papers
Complete list of metadatas

Cited literature [36 references]  Display  Hide  Download

Contributor : Louis Jachiet <>
Submitted on : Tuesday, January 8, 2019 - 4:36:05 PM
Last modification on : Thursday, February 7, 2019 - 3:40:02 PM


Publisher files allowed on an open archive


  • HAL Id : hal-01673025, version 3



Louis Jachiet, Nils Gesbert, Pierre Genevès, Nabil Layaïda. On the Optimization of Recursive Relational Queries. BDA 2018 - 34ème Conférence sur la Gestion de Données - Principes, Technologies et Applications, Oct 2018, Bucarest, Romania. pp.1-22. ⟨hal-01673025v3⟩



Record views


Files downloads