Skip to main content
QUICK REVIEW

[Paper Review] LocationSpark: In-memory Distributed Spatial Query Processing and Optimization

Mingjie Tang, Yongyang Yu|arXiv (Cornell University)|Jul 8, 2019
Data Management and AlgorithmsComputer Science23 references9 citations
TL;DR

LocationSpark proposes an in-memory, distributed spatial query processing system optimized for spatial query skew and communication overhead. It introduces a cost-based query scheduler with spatial bitmap filters (sFilter) and adaptive local plan optimization, achieving up to 10x performance improvement over existing systems on real-world datasets like Twitter and OpenStreetMap.

ABSTRACT

Due to the ubiquity of spatial data applications and the large amounts of spatial data that these applications generate and process, there is a pressing need for scalable spatial query processing. In this paper, we present new techniques for spatial query processing and optimization in an in-memory and distributed setup to address scalability. More specifically, we introduce new techniques for handling query skew, which is common in practice, and optimize communication costs accordingly. We propose a distributed query scheduler that use a new cost model to optimize the cost of spatial query processing. The scheduler generates query execution plans that minimize the effect of query skew. The query scheduler employs new spatial indexing techniques based on bitmap filters to forward queries to the appropriate local nodes. Each local computation node is responsible for optimizing and selecting its best local query execution plan based on the indexes and the nature of the spatial queries in that node. All the proposed spatial query processing and optimization techniques are prototyped inside Spark, a distributed memory-based computation system. The experimental study is based on real datasets and demonstrates that distributed spatial query processing can be enhanced by up to an order of magnitude over existing in-memory and distributed spatial systems.

Motivation & Objective

  • Address scalability and performance bottlenecks in distributed spatial query processing due to data skew and high I/O costs.
  • Reduce communication overhead in distributed spatial joins by minimizing redundant data shuffling.
  • Optimize query execution plans using a novel cost model that accounts for spatial query skew and data distribution.
  • Enable efficient in-memory processing of large-scale spatial workloads using Spark as the underlying execution engine.
  • Improve performance of spatial range and k-NN joins through adaptive local plan selection and spatial indexing.

Proposed method

  • Design a distributed query scheduler that uses a new cost model to generate execution plans minimizing skew impact.
  • Introduce sFilter, a spatial bitmap filter technique to efficiently forward queries to relevant local nodes based on spatial distribution.
  • Implement adaptive local query optimization per node using local indexes and query characteristics.
  • Integrate the system into Spark, leveraging its in-memory computation and fault-tolerance capabilities.
  • Use bitmap-based filtering to reduce shuffle costs by pre-selecting relevant partitions before data transfer.
  • Evaluate performance using real datasets (Twitter, OSMP) on an EC2 cluster with varying worker counts and join types.

Experimental results

Research questions

  • RQ1How can spatial query skew in distributed spatial processing be effectively mitigated?
  • RQ2What cost model enables optimal query execution plan generation under spatial data skew?
  • RQ3To what extent can in-memory computation and optimized filtering reduce communication overhead in spatial joins?
  • RQ4How does the proposed system scale with increasing numbers of workers in a distributed environment?
  • RQ5What performance gains are achievable over existing in-memory spatial systems like GeoSpark and Simba?

Key findings

  • LocationSpark achieves up to a 10x performance improvement over existing in-memory and distributed spatial systems on real datasets.
  • The sFilter technique reduces shuffle cost by up to 180× compared to baseline methods, significantly lowering communication overhead.
  • Performance scales effectively with the number of executors, showing consistent improvement from 4 to 10 executors on the Twitter dataset.
  • The system outperforms GeoSpark and SpatialSpark in spatial range join operations, especially under skewed workloads.
  • Simba(opt), enhanced with LocationSpark’s scheduler and sFilter, shows significant performance gains, demonstrating the effectiveness of the proposed optimization techniques.
  • The proposed cost model and query scheduler effectively reduce the impact of query skew, particularly in high-load scenarios like rush hour in urban areas.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.