MobilityDuck: Mobility Data Management with DuckDB
Nhu Ngoc Hoang, Ngoc Hoa Pham, Viet Phuong Hoang, Esteban Zimányi
TL;DR
MobilityDuck presents the first DuckDB extension that embeds the MEOS spatiotemporal engine to provide native spatiotemporal types and trajectory operators in an in-memory analytical environment. By connecting a lightweight, in-process analytics engine with MEOS, MobilityDuck preserves expressive spatiotemporal queries while leveraging DuckDB’s vectorized execution and Python interoperability. The BerlinMOD-Hanoi benchmark demonstrates that MobilityDuck delivers competitive, often superior performance compared with MobilityDB across multiple queries and scales, validating its practicality for urban mobility analytics. The work lays groundwork for deeper MEOS/Spatial integration, automated type bindings, and expanded indexing, enabling a unified, high-performance platform for spatiotemporal analytics in embedded analytics pipelines.
Abstract
The analytics of spatiotemporal data is increasingly important for mobility analytics. Despite extensive research on moving object databases (MODs), few systems are ready on production or lightweight enough for analytics. MobilityDB is a notable system that extends PostgreSQL with spatiotemporal data, but it inherits complexity of the architecture as well. In this paper, we present MobilityDuck, a DuckDB extension that integrates the MEOS library to provide support spatiotemporal and other temporal data types in DuckDB. MobilityDuck leverages DuckDB's lightweight, columnar, in-memory executable properties to deliver efficient analytics. To the best of our knowledge, no existing in-memory or embedded analytical system offers native spatiotemporal types and continuous trajectory operators as MobilityDuck does. We evaluate MobilityDuck using the BerlinMOD-Hanoi benchmark dataset and compare its performance to MobilityDB. Our results show that MobilityDuck preserves the expressiveness of spatiotemporal queries while benefiting from DuckDB's in-memory, columnar architecture.
