Evaluating the Impact Of Spatial Features Of Mobility Data and Index Choice On Database Performance
Tim C. Rese, Alexandra Kapp, David Bermbach
TL;DR
The paper addresses how index choice, data format, and dataset characteristics jointly affect spatial database performance for moving-object data, using PostGIS as a prototype. It introduces novel metrics for overlap and skew and scalable Monte Carlo approximations, and designs an application-driven benchmark with synthetic and real datasets to compare GiST, SP-GiST, and BRIN across segmented versus non-segmented trajectory representations in read/write workloads. Key findings show that data format and index choice substantially influence performance, with GiST typically delivering the best reads, BRIN excelling in writes, and a nuanced relationship between dataset overlap and benefit from segmentation; the average nearest neighbor distribution showed limited correlation in this study. The results offer practical guidance to developers for optimizing spatial storage and querying in moving-object scenarios and motivate extending the benchmark to additional DB systems and spatiotemporal workloads.
Abstract
The growing number of moving Internet-of-Things (IoT) devices has led to a surge in moving object data, powering applications such as traffic routing, hotspot detection, or weather forecasting. When managing such data, spatial database systems offer various index options and data formats, e.g., point-based or trajectory-based. Likewise, dataset characteristics such as geographic overlap and skew can vary significantly. All three significantly affect database performance. While this has been studied in existing papers, none of them explore the effects and trade-offs resulting from a combination of all three aspects. In this paper, we evaluate the performance impact of index choice, data format, and dataset characteristics on a popular spatial database system, PostGIS. We focus on two aspects of dataset characteristics, the degree of overlap and the degree of skew, and propose novel approximation methods to determine these features. We design a benchmark that compares a variety of spatial indexing strategies and data formats, while also considering the impact of dataset characteristics on database performance. We include a variety of real-world and synthetic datasets, write operations, and read queries to cover a broad range of scenarios that might occur during application runtime. Our results offer practical guidance for developers looking to optimize spatial storage and querying, while also providing insights into dataset characteristics and their impact on database performance.
