Skip to main content
Erschienen in: Datenbank-Spektrum 3/2020

09.09.2020 | Fachbeitrag

Efficient Compilation of Regular Path Queries

verfasst von: Frank Tetzel, Wolfgang Lehner, Romans Kasperovics

Erschienen in: Datenbank-Spektrum | Ausgabe 3/2020

Einloggen

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Ad hoc code generation is a state-of-the-art processing paradigm for database execution engines. It minimizes resource consumption by generating specialized code, tailored and streamlined for the single query at hand. In this work, we apply ad hoc code generation to regular path queries (RPQs), an advanced query type in declarative graph query languages. We investigate code generation from multiple angles. We propose COAT, an embedded domain specific language (EDSL) in C++ to improve accessibility of code generation by simplifying the interaction with compiler APIs. Furthermore, we analyze and compare two back ends for COAT providing the just-in-time (JIT) compilation functionality: LLVM, a compiler framework popularly used in databases for code generation, and AsmJit, a JIT assembler with very low compilation latency. We evaluate various compilation techniques for RPQs on different synthetic graph workloads.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Weitere Produktempfehlungen anzeigen
Literatur
1.
Zurück zum Zitat Aberger CR, Tu S, Olukotun K, Ré C (2016) Emptyheaded: a relational engine for graph processing. In: Özcan F, Koutrika G, Madden S (eds) Proceedings of the 2016 International Conference on Management of Data SIGMOD Conference 2016, San Francisco, CA, USA, 26 June–1 July 2016. ACM, New York, NY, USA, pp 431–446. https://doi.org/10.1145/2882903.2915213CrossRef Aberger CR, Tu S, Olukotun K, Ré C (2016) Emptyheaded: a relational engine for graph processing. In: Özcan F, Koutrika G, Madden S (eds) Proceedings of the 2016 International Conference on Management of Data SIGMOD Conference 2016, San Francisco, CA, USA, 26 June–1 July 2016. ACM, New York, NY, USA, pp 431–446. https://​doi.​org/​10.​1145/​2882903.​2915213CrossRef
2.
Zurück zum Zitat Angles R, Arenas M, Barceló P, Boncz PA, Fletcher GHL, Gutierrez C, Lindaaker T, Paradies M, Plantikow S, Sequeda JF, van Rest O, Voigt H (2018) G‑CORE: A core for future graph query languages. In: Das G, Jermaine CM, Bernstein PA (eds) Proceedings of the 2018 International Conference on Management of Data SIGMOD Conference 2018, Houston, TX, USA, 10-15 June 2018. ACM, New York, NY, USA, pp 1421–1432. https://doi.org/10.1145/3183713.3190654CrossRef Angles R, Arenas M, Barceló P, Boncz PA, Fletcher GHL, Gutierrez C, Lindaaker T, Paradies M, Plantikow S, Sequeda JF, van Rest O, Voigt H (2018) G‑CORE: A core for future graph query languages. In: Das G, Jermaine CM, Bernstein PA (eds) Proceedings of the 2018 International Conference on Management of Data SIGMOD Conference 2018, Houston, TX, USA, 10-15 June 2018. ACM, New York, NY, USA, pp 1421–1432. https://​doi.​org/​10.​1145/​3183713.​3190654CrossRef
8.
Zurück zum Zitat Hong S, Chafi H, Sedlar E, Olukotun K (2012) Green-marl: a DSL for easy and efficient graph analysis. In: Harris T, Scott ML (eds) Proceedings of the 17th International Conference on Architectural Support for Programming Languages and Operating Systems ASPLOS 2012, London, UK, 3-7 March 2012. ACM, New York, NY, USA, pp 349–362. https://doi.org/10.1145/2150976.2151013CrossRef Hong S, Chafi H, Sedlar E, Olukotun K (2012) Green-marl: a DSL for easy and efficient graph analysis. In: Harris T, Scott ML (eds) Proceedings of the 17th International Conference on Architectural Support for Programming Languages and Operating Systems ASPLOS 2012, London, UK, 3-7 March 2012. ACM, New York, NY, USA, pp 349–362. https://​doi.​org/​10.​1145/​2150976.​2151013CrossRef
11.
14.
Zurück zum Zitat Paradies M, Kinder C, Bross J, Fischer T, Kasperovics R, Gildhoff H (2017) Graphscript: implementing complex graph algorithms in SAP HANA. In: Rompf T, Alexandrov A (eds) Proceedings of The 16th International Symposium on Database Programming Languages DBPL 2017, Munich, Germany, 1 Sept 2017. ACM, New York, NY, USA, pp 13:1–13:4. https://doi.org/10.1145/3122831.3122841CrossRef Paradies M, Kinder C, Bross J, Fischer T, Kasperovics R, Gildhoff H (2017) Graphscript: implementing complex graph algorithms in SAP HANA. In: Rompf T, Alexandrov A (eds) Proceedings of The 16th International Symposium on Database Programming Languages DBPL 2017, Munich, Germany, 1 Sept 2017. ACM, New York, NY, USA, pp 13:1–13:4. https://​doi.​org/​10.​1145/​3122831.​3122841CrossRef
16.
Zurück zum Zitat Raducanu B, Boncz PA, Zukowski M (2013) Micro adaptivity in vectorwise. In: Ross KA, Divesh S, Papadias D (eds) Proceedings of the ACM SIGMOD International Conference on Management of Data SIGMOD 2013, New York, NY, USA, 22-27 June 2013. ACM, New York, NY, USA, pp 1231–1242. https://doi.org/10.1145/2463676.2465292CrossRef Raducanu B, Boncz PA, Zukowski M (2013) Micro adaptivity in vectorwise. In: Ross KA, Divesh S, Papadias D (eds) Proceedings of the ACM SIGMOD International Conference on Management of Data SIGMOD 2013, New York, NY, USA, 22-27 June 2013. ACM, New York, NY, USA, pp 1231–1242. https://​doi.​org/​10.​1145/​2463676.​2465292CrossRef
17.
Zurück zum Zitat van Rest O, Hong S, Kim J, Meng X, Chafi H (2016) PGQL: a property graph query language. In: Boncz PA, Larriba-Pey J (eds) Proceedings of the Fourth International Workshop on Graph Data Management Experiences and Systems Redwood Shores, CA, USA, June 24–24, 2016. ACM, New York, NY, USA, p 7. https://doi.org/10.1145/2960414.2960421CrossRef van Rest O, Hong S, Kim J, Meng X, Chafi H (2016) PGQL: a property graph query language. In: Boncz PA, Larriba-Pey J (eds) Proceedings of the Fourth International Workshop on Graph Data Management Experiences and Systems Redwood Shores, CA, USA, June 24–24, 2016. ACM, New York, NY, USA, p 7. https://​doi.​org/​10.​1145/​2960414.​2960421CrossRef
20.
Zurück zum Zitat Tahboub RY, Essertel GM, Rompf T (2018) How to architect a query compiler, revisited. In: Das G, Jermaine CM, Bernstein PA (eds) Proceedings of the 2018 International Conference on Management of Data SIGMOD Conference 2018, Houston, TX, USA, 10-15 June 2018. ACM, New York, NY, USA, pp 307–322. https://doi.org/10.1145/3183713.3196893CrossRef Tahboub RY, Essertel GM, Rompf T (2018) How to architect a query compiler, revisited. In: Das G, Jermaine CM, Bernstein PA (eds) Proceedings of the 2018 International Conference on Management of Data SIGMOD Conference 2018, Houston, TX, USA, 10-15 June 2018. ACM, New York, NY, USA, pp 307–322. https://​doi.​org/​10.​1145/​3183713.​3196893CrossRef
21.
Zurück zum Zitat Tahboub RY, Wu X, Essertel GM, Rompf T (2019) Towards compiling graph queries in relational engines. In: Cheung A, Nguyen K (eds) Proceedings of the 17th ACM SIGPLAN International Symposium on Database Programming Languages DBPL 2019, Phoenix, AZ, USA, 23 June 2019. ACM, New York, NY, USA, pp 30–41. https://doi.org/10.1145/3315507.3330200CrossRef Tahboub RY, Wu X, Essertel GM, Rompf T (2019) Towards compiling graph queries in relational engines. In: Cheung A, Nguyen K (eds) Proceedings of the 17th ACM SIGPLAN International Symposium on Database Programming Languages DBPL 2019, Phoenix, AZ, USA, 23 June 2019. ACM, New York, NY, USA, pp 30–41. https://​doi.​org/​10.​1145/​3315507.​3330200CrossRef
22.
Zurück zum Zitat Terpstra D, Jagode H, You H, Dongarra JJ (2010) Collecting performance data with PAPI‑C. In: Müller MS, Resch MM, Schulz A, Nagel WE (eds) Tools for High Performance Computing 2009 – Proceedings of the 3rd International Workshop on Parallel Tools for High Performance Computing ZIH, Dresden, 09.2009 Springer, Berlin, Heidelberg, New York, pp 157–173 https://doi.org/10.1007/978-3-642-11261-4_11CrossRef Terpstra D, Jagode H, You H, Dongarra JJ (2010) Collecting performance data with PAPI‑C. In: Müller MS, Resch MM, Schulz A, Nagel WE (eds) Tools for High Performance Computing 2009 – Proceedings of the 3rd International Workshop on Parallel Tools for High Performance Computing ZIH, Dresden, 09.2009 Springer, Berlin, Heidelberg, New York, pp 157–173 https://​doi.​org/​10.​1007/​978-3-642-11261-4_​11CrossRef
23.
Zurück zum Zitat Tetzel F, Kasperovics R, Lehner W (2019) Graph traversals for regular path queries. In: Arora A, Bhattacharya A, Fletcher GHL (eds) Proceedings of the 2nd Joint International Workshop on Graph Data Management Experiences & Systems (GRADES) and Network Data Analytics (NDA) Amsterdam, The Netherlands, 30 June 2019. ACM, New York, NY, USA, pp 5:1–5:8. https://doi.org/10.1145/3327964.3328494CrossRef Tetzel F, Kasperovics R, Lehner W (2019) Graph traversals for regular path queries. In: Arora A, Bhattacharya A, Fletcher GHL (eds) Proceedings of the 2nd Joint International Workshop on Graph Data Management Experiences & Systems (GRADES) and Network Data Analytics (NDA) Amsterdam, The Netherlands, 30 June 2019. ACM, New York, NY, USA, pp 5:1–5:8. https://​doi.​org/​10.​1145/​3327964.​3328494CrossRef
25.
Zurück zum Zitat Wadhwa S, Prasad A, Ranu S, Bagchi A, Bedathur S (2019) Efficiently answering regular simple path queries on large labeled networks. In: Boncz PA, Manegold S, Ailamaki A, Deshpande A, Kraska T (eds) Proceedings of the 2019 International Conference on Management of Data SIGMOD Conference 2019, Amsterdam, The Netherlands, 30 June–5 July 2019. ACM, New York, NY, USA, pp 1463–1480. https://doi.org/10.1145/3299869.3319882CrossRef Wadhwa S, Prasad A, Ranu S, Bagchi A, Bedathur S (2019) Efficiently answering regular simple path queries on large labeled networks. In: Boncz PA, Manegold S, Ailamaki A, Deshpande A, Kraska T (eds) Proceedings of the 2019 International Conference on Management of Data SIGMOD Conference 2019, Amsterdam, The Netherlands, 30 June–5 July 2019. ACM, New York, NY, USA, pp 1463–1480. https://​doi.​org/​10.​1145/​3299869.​3319882CrossRef
Metadaten
Titel
Efficient Compilation of Regular Path Queries
verfasst von
Frank Tetzel
Wolfgang Lehner
Romans Kasperovics
Publikationsdatum
09.09.2020
Verlag
Springer Berlin Heidelberg
Erschienen in
Datenbank-Spektrum / Ausgabe 3/2020
Print ISSN: 1618-2162
Elektronische ISSN: 1610-1995
DOI
https://doi.org/10.1007/s13222-020-00353-9

Weitere Artikel der Ausgabe 3/2020

Datenbank-Spektrum 3/2020 Zur Ausgabe

Editorial

Editorial

Community

News