Efficient k-NN Trajectory Queries on Mobility Databases
The rapid adoption of GPS-enabled mobile devices has produced massive trajectory datasets that drive modern applications in traffic prediction, logistics, and spatio-temporal analytics. Yet traditional database management systems (DBMSs) still lack native operators to process such data efficiently. To overcome this limitation, we introduce a set of k-nearest neighbor (k-NN) user-defined aggregates (UDAs) that embed k-NN processing directly within the PostgreSQL engine. By integrating computation into the database core, our approach minimizes data transfer and latency while maintaining low storage overhead. Experiments on benchmarked BerlinMOD-derived datasets demonstrate that the proposed UDAs reduce query execution time by 6–23%, depending on dataset size and query complexity.
Authors
- Dong June Lew (ORCID: https://orcid.org/0000-0003-4095-1196)
- Kwang Woo Nam (ORCID: https://orcid.org/0000-0001-9970-7863)
- Linghui Lou (ORCID: https://orcid.org/0000-0002-7603-8465)
Institutions
- Kunsan National University (KR)
Publication Details
- Journal
- ISPRS International Journal of Geo-Information
- Published
- 2025-11-23
- DOI
- https://doi.org/10.3390/ijgi14120458
- Primary Topic
- Data Management and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Ministry of Land, Infrastructure and Transport
- Korea Agency for Infrastructure Technology Advancement