Reproduce “Raqlet: Cross-Paradigm Compilation for Recursive Queries” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Amir Shaikhha, Youning Xia, Meisam Tarabkhah, Jazal Saleem, Anna Herlihy

Raqlet introduces a cross-paradigm compilation framework that translates recursive queries between relational, graph, and deductive database languages. The framework uses a Datalog-inspired intermediate representation for static analysis and optimization, demonstrating preliminary performance gains where translated and optimized queries significantly reduce execution times compared to original graph database queries, for example, reducing an LDBC SQ1 query from 72.17ms on Neo4j to 0.02ms with optimized Soufflé.

Key insights

  • A Datalog-inspired Intermediate Representation (DLIR) can effectively unify disparate recursive query paradigms by providing a robust, semantically sound 'golden reference' for translation and formal reasoning.
  • Performing static analysis and comprehensive optimization at a unified IR level allows for the application of advanced techniques, such as Magic Sets and semantic join optimizations, universally across various source languages and target systems.
  • Cross-paradigm query compilation enables leveraging the specific strengths and optimized execution capabilities of different database engines, leading to improved performance and increased flexibility for complex recursive workloads.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.