Running JavaScript Stored-Programs Inside MySQL Server

Wednesday 11:00AM-11:50AM

@ Room B4&B5

MySQL / MariaDB

50 minutes conference



We open a new chapter for MySQL stored-programs by enabling execution of JavaScript inside MySQL Server. The JavaScript stored-programs have all the benefits of the existing MySQL stored-programs such as reduced network traffic and enhanced security. But now, we can leverage existing JavaScript libraries to implement complex programs and run them efficiently, close to the persisted data.

In this talk, we present the integration between the GraalVM JavaScript runtime and MySQL Server. During the presentation, we demo how to define and execute JavaScript stored-programs, how to seamlessly deploy existing JavaScript code from a source repository to the database, and how to debug JavaScript code running in MySQL Server. Finally, we show how the execution of JavaScript programs in MySQL Server outperforms client-side execution.


Øystein Grøvlen

Øystein Grøvlen (Oracle)

Senior Principal Software Engineer


Øystein Grøvlen is a Senior Principal Software Engineer in the MySQL group at Oracle, where he works on the MySQL Query Optimizer. He has been talking about the MySQL Optimizer at several conferences over the years. Dr. Grøvlen has a PhD in Computer Science from the Norwegian University of Science and Technology. Before joining the MySQL team 10 years ago, he was a contributor on the Apache Derby project and Sun's Architectural Lead on Java DB. Prior to that, he worked for 10 years on development of Clustra, a highly available DBMS. Øystein lives in Trondheim, Norway.

Vojin Jovanovic

Vojin Jovanovic (Oracle)

Principal Researcher


Vojin believes that programs can be described in an abstract way and at the same time executed as quickly as their manually optimized counterparts. To this end, he is working Oracle Labs to improve dynamic compilation in multilingual environments. Before joining Oracle, Vojin received his Ph.D. in the Scala laboratory at the Swiss Federal Institute of Technology in Lausanne (EPFL), where he developed a platform for simply adding domain-specific optimizations to existing Scala libraries.

Farhan Tauheed

Farhan Tauheed (Oracle)

Principal Researcher


Farhan has a background in developing database components. At Oracle he worked on compiler and optimizer for a massive distributed analytical processing system. Prior to joining Oracle, Farhan received his Ph.D. from EPFL Switzerland under the supervision of Prof. Anastasia Ailamaki. During his Ph.D. he worked on "The Human Brain Project" to develop efficient data access methods to scale up brain simulation.


  Download Slides  

Connect with Percona

Stay Connected on:

Percona Live Conferences

The Percona Live Open Source Database Conferences are the premier event for the diverse and active open source database community, as well as businesses that develop and use open source database software.

Contact Us

For general information about the event/expo/conference, including registration, please contact us at:

  • info(@)
  • +1-888-401-3401
  • +1-919-948-2863