Akmal Chaudhri

Using WebAssembly for in-database Machine Learning

Eliminate data movement bottlenecks by running ML models inside your database. Learn how WebAssembly provides a secure, high-performance solution.

Using WebAssembly for in-database Machine Learning
#1about 4 minutes

Introducing WebAssembly for in-database machine learning

WebAssembly enables running high-performance code like C++ or Rust directly inside a database, co-locating analytics with data.

#2about 3 minutes

Comparing methods for machine learning with databases

An overview of different approaches to database ML includes using Apache Spark, Python libraries, built-in vector functions, and OpenAI embeddings.

#3about 7 minutes

Why use WebAssembly for in-database analytics

Running Wasm UDFs inside the database avoids data movement, extends DBMS features, and executes sandboxed code at near-native speed.

#4about 4 minutes

Setting up the Wasm and Rust development environment

A step-by-step guide to installing the necessary one-time dependencies, including the Wasmtime SDK, Rust toolchain, and wasm-bindgen.

#5about 4 minutes

Building a Wasm sentiment analysis function in Rust

The process involves creating an interface definition file (.wit), managing dependencies with cargo, and writing Rust code to wrap a sentiment analysis library.

#6about 5 minutes

Compiling and deploying the Wasm UDF to the database

After compiling the Rust code into a Wasm module, a specific tool is used to upload and register the function within the database system.

#7about 6 minutes

Live demo of sentiment analysis on a movie dataset

A live demonstration shows how to execute the deployed Wasm UDF with a SQL query against a table of IMDB movie reviews.

#8about 26 minutes

Summary, resources, and audience Q&A

A recap of Wasm's benefits for database extensibility is followed by links to resources and an audience Q&A session on implementation and performance.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
With AIs wide open - WeAreDevelopers at All Things Open 2025
Last week our VP of Developer Relations, Chris Heilmann, flew to Raleigh, North Carolina to present at All Things Open . An excellent event he had spoken at a few times in the past and this being the “Lucky 13” edition, he didn’t hesitate to come and...
With AIs wide open - WeAreDevelopers at All Things Open 2025
LM
Luis Minvielle
The Best Upcoming IT Webinars
Now that you already know what IT webinars are and how they can help you level up your professional appeal, you might want actually to get into one. Live tech webinars are one of the best ways to stay on top of the latest trends and tools because eit...
The Best Upcoming IT Webinars
CH
Chris Heilmann
WWC24 Talk - Scott Hanselman - AI: Superhero or Supervillain?
Join Scott Hanselman at WWC24 to explore AI's role as a superhero or supervillain. Scott shares his 32 years of experience in software engineering, discusses AI myths, ethical dilemmas, and tech advancements. Engage with his live demos and insights o...
WWC24 Talk - Scott Hanselman - AI: Superhero or Supervillain?
CH
Chris Heilmann
Dev Digest 116 - WWWAI?
This time, learn how to un-AI Google's search results, what's new on the web, avoid a new security hole and go back to BASICS with us. News and ArticlesWhat a week. Google, Microsoft, OpenAI and many others had their big flagship events announcing th...
Dev Digest 116 - WWWAI?

From learning to earning

Jobs that call for the skills explored in this talk.

AI Developer

AI Developer

Digital Health and Care Wales
Cardiff, United Kingdom

£48-55K
low-code
SharePoint
Agile Methodologies