PostMan: A Productive System for Spatio-temporal Data Management and Analysis

Jiaqi Jin, Ziquan Fang, Lu Chen, Yunjun GaoData Sci. Eng 2025

Introduction

As location-based services, satellite imagery, and IoT devices proliferate, the volume of spatio-temporal data is exploding. While distributed systems like Apache Sedona, GeoMesa, and Simba exist to handle this data, they often struggle to balance three critical needs: multi-functionality (handling both vector and raster data natively), flexibility (integrating easily with existing workflows), and computational efficiency.

A major hidden bottleneck in existing distributed spatial databases is load imbalance after partition filtering. When a user queries a specific region (e.g., "find all coffee shops in New York"), the system filters out data from other regions. In traditional systems, this leaves the Spark executors holding the filtered-out data completely idle, while the executors holding the New York data are overwhelmed. Furthermore, many existing systems force users to load entire datasets into memory just to build indexes, which causes memory thrashing and crashes on massive datasets.

PostMan is a new distributed spatio-temporal data management system built on Apache Spark that efficiently handles both vector and raster data. By introducing a novel two-phase static partitioning method, hybrid indexing, and GPU acceleration, it solves these common bottlenecks, outperforming state-of-the-art baselines by 13-36%.

System Design and Methodology

PostMan builds on Apache Spark and Hadoop HDFS, introducing several novel techniques to address the gaps in current spatial data processing frameworks.

STDataset via Mixin Pattern

Instead of modifying Spark's source code—which makes maintenance difficult—PostMan introduces STDataset. It extends Spark RDDs using a code-mixing design pattern, seamlessly adding spatial capabilities while retaining standard Spark APIs. This allows for easier integration into existing data science workflows without hacking core framework code.

Unified Partition Management & Hybrid Indexing

PostMan uses a global index (kept in memory) to quickly locate relevant data partitions, and local indexes (stored on disk) within those partitions. Crucially, this allows PostMan to push query predicates down to the storage layer—meaning irrelevant files are never even loaded into memory, significantly reducing the memory footprint during large-scale queries.

Two-Phase Static Partitioning (TPSP)

To solve the post-filtering load imbalance, PostMan uses a two-step approach:

  1. Partition Generation: It uses an enhanced R*-Tree algorithm to divide data into balanced chunks based on record count, storage size, and geometric complexity.
  2. Partition Allocation: It models the assignment of these partitions to Spark executors as a "bin-packing" optimization problem. Using a heuristic greedy algorithm, it distributes partitions so that no matter where a query's geographic bounding box falls, the computational work will be spread evenly across all available nodes.
PostMan supports a wide array of spatial operations across both vector and raster data formats, including range queries, kNN, and overlay analysis.

GPU Acceleration

PostMan provides a framework to offload independent, compute-intensive spatial tasks (like calculating Haversine distances or performing spatial joins) to GPUs using Spark RAPIDS and NVIDIA cuDF, bypassing CPU bottlenecks and achieving up to 14x speedups on offloaded tasks.

Experimental Evaluation

The authors evaluated PostMan using several massive real-world datasets, including 3 billion vector records from OpenStreetMap (257.2GB), 338 million NYC Yellow Taxi records, and global land cover raster data (GLC2000).

Key Results

  • Vector and Raster Performance: PostMan reduced spatial range query times by ~15-18% and kNN query times by ~15-19% compared to Simba. For complex zonal statistical analysis, it reduced computation time by ~35.2% compared to baselines like Sedona and Geotrellis-Spark.
  • TPSP Efficiency: The Two-Phase Static Partitioning method successfully eliminated executor idleness, reducing overall operator runtime by ~22% compared to standard Grid or STR partitioning methods.
  • GPU Speedup: Offloading specific spatio-temporal operators to the GPU resulted in an average speedup of 14x compared to CPU-only execution.
  • Storage-layer Filtering: By persisting local R-tree indexes to disk and using them to skip irrelevant data streams before they hit memory, PostMan avoids the out-of-memory errors that plague systems trying to do all their filtering in RAM.

Conclusion and Future Work

PostMan demonstrates that predicting and balancing the workload after spatial filtering is critical for distributed efficiency. By natively supporting both raster and vector data and leveraging GPU acceleration, it offers a significant performance boost over state-of-the-art baselines.

Future work includes integrating Large Language Models (LLMs) to enable Natural Language to SQL (NL2SQL) querying, allowing users to perform complex spatial analysis using plain English. The researchers also plan to explore advanced machine learning algorithms to further optimize the TPSP partition allocation phase and expand the library of GPU-accelerated operators.

Summary updated

BibTeX
@article{jin2025postman,
  author = {Jiaqi Jin and Ziquan Fang and Lu Chen and Yunjun Gao},
  title = {{PostMan: A Productive System for Spatio-temporal Data Management and Analysis}},
  journal = {Data Sci. Eng.},
  year = {2025},
  doi = {10.1007/s41019-025-00302-0},
}
Figure