# Mojo inside Exasol database for User Defined Functions (UDF) - as a Script Languge Container

**URL:** <https://forum.modular.com/t/mojo-inside-exasol-database-for-user-defined-functions-udf-as-a-script-languge-container/3532>\
**Category:** Mojo\
**Created:** [September 28, 2026, 9:16am UTC](https://forum.modular.com/t/mojo-inside-exasol-database-for-user-defined-functions-udf-as-a-script-languge-container/3532 "2026-09-28T09:16:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ROSEDOLA](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@ROSEDOLA](https://forum.modular.com/u/ROSEDOLA)\
**Post date:** [September 28, 2026, 9:16am UTC](https://forum.modular.com/t/mojo-inside-exasol-database-for-user-defined-functions-udf-as-a-script-languge-container/3532/1 "2026-09-28T09:16:23Z")

</div>

Hello out here,

I have created a Mojo Script Language Container for the Exasol database for  
creating fast(er) User Defined Functions. (UDF). You can find it here:

> **[GitHub - exasol-labs/language-container-mojo: A Script Language Container for Mojo](https://github.com/exasol-labs/language-container-mojo)**
>
> A Script Language Container for Mojo

Exasol is available as a test bed for free on the Exasol homepage (Exasol Personal) or on  
Docker Hub (Exasol Nano). Have fun playing around with it. Happy to receive feedback…

A blog article is in preparation…

---

<div class="post-metadata">

**Author:** ![Autark\_pseudo](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/autark_pseudo/32/1297_2.png) [@Autark\_pseudo](https://forum.modular.com/u/Autark_pseudo)\
**Post date:** [September 28, 2026, 2:05pm UTC](https://forum.modular.com/t/mojo-inside-exasol-database-for-user-defined-functions-udf-as-a-script-languge-container/3532/2 "2026-09-28T14:05:20Z")

</div>

Implementing Mojo inside Exasol sounds pretty intresting for someone interested on GeoSpatial Computing. I read you GitHub repo description and found some stuff that seem to align perfectly with someone on my grind. Spatial clustering groups geographic locations based on proximity. In relational databases, this is often done using a **SET UDF** (a custom aggregation that processes a group of rows and yields cluster assignments-if you’ve done this before 😅 ).

Common algorithms that are pretty good are none other than DBSCAN and K Medoids…

#### So my insterest is blatantly DBSCAN (Density-Based Spatial Clustering of Applications with Noise)

#### where Groups points that are packed closely together within a distance threshold (\\epsilon) and flags points in low-density regions so Mojo might be interesting for this. DBSCAN requires repeated distance evaluations between points. Running this in pure SQL requires expensive self-joins. Inside a Mojo SET UDF, points in a group are collected in memory, and Mojo’s native speed processes the spatial distance matrix in parallel across Exasol nodes. as for K medoids i havent experimented on that. i wonder if youve done any

####

---

<div class="post-metadata">

**Author:** ![ROSEDOLA](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@ROSEDOLA](https://forum.modular.com/u/ROSEDOLA)\
**Post date:** [September 29, 2026, 5:29am UTC](https://forum.modular.com/t/mojo-inside-exasol-database-for-user-defined-functions-udf-as-a-script-languge-container/3532/3 "2026-09-29T05:29:40Z")

</div>

No, I have not done any computation / use case you are describing. But it sounds interesting though…
