Distributed processing of continuous range queries over moving objects

Hui Zhu,Ziqiang Yu
DOI: https://doi.org/10.48550/arXiv.2206.01905
2022-06-04
Abstract:Monitoring range queries over moving objects is essential to extensive location-based services. The challenge faced with these location-based services is having to process numerous concurrent range queries over a large volume of moving objects. However, the existing range query processing algorithms are almost centralized based on one single machine, which are hard to address the challenge due to the limited memory and computing resources. To address this issue, we propose a distributed search solution for processing concurrent range queries over moving objects in this work. Firstly, a Distributed Dynamic Index (DDI) that consists of a global grid index and local dynamic M-ary tree indexes was proposed to maintain the moving objects and support the search algorithm. Next, a Distributed Range Query Algorithm (DRQA) was designed based on DDI, which introduces an incremental search strategy to monitor the range queries as objects evolve; during the process, it further designs a computation sharing paradigm for processing multiple concurrent queries by making full use of their common computation to decrease the search cost. Finally, three object datasets with different distributions were simulated on a New York road network and three baseline methods were introduced to more sufficiently evaluate the performance of our proposal. Compared with state-of-the-art method, the initial query cost of the DRQA algorithm reduces by $22.7\%$ and the incremental query cost drops by 15.2%, which certifies the superiority of our method over existing approaches.
Databases
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the challenge of handling a large number of concurrent range queries on large - scale moving objects. Specifically, most of the existing range query processing algorithms are based on single - machine centralized processing. When facing a large number of moving objects and concurrent queries, it is difficult to meet the requirements due to limitations in memory and computing resources. To solve this problem, the paper proposes a distributed search solution for handling concurrent range queries on moving objects. ### Main Contributions 1. **Proposing the Distributed Dynamic Index (DDI)**: DDI consists of a global grid index and a local dynamic M - ary tree index. It can dynamically adjust the index granularity of each cell to adapt to the distribution density of moving objects in different areas. DDI can reduce unnecessary traversal of moving objects and provide stronger pruning capabilities. 2. **Designing the Distributed Range Query Algorithm (DRQA)**: DRQA is based on DDI. It introduces an incremental search strategy to monitor changes in range queries and designs a computational sharing mechanism. By making full use of the common calculations between multiple concurrent queries, it reduces the search cost. 3. **Experimental Verification**: The proposed algorithm was deployed on the Storm distributed computing platform and compared with three baseline methods. The results show that DRQA reduces the initial query cost and the incremental query cost by 22.7% and 15.2% respectively, proving the superiority of this method. ### Technical Details - **DDI Structure**: - **Global Grid Index**: Divide the entire query area into cells of equal size, and each cell records the moving objects it contains. - **Dynamic M - ary Tree Index**: When the number of moving objects in a cell exceeds the threshold α, a dynamic M - ary tree is constructed. The depth of the tree can be dynamically adjusted according to the distribution density of moving objects. If the number of moving objects in a leaf node exceeds α, the leaf node will be split into m new leaf nodes; if the total number of moving objects in a group of leaf nodes is less than β, these leaf nodes will be deleted and their parent node becomes the new leaf node. - **DRQA Algorithm**: - **Candidate Cell Set**: Determine the candidate cell set for the query according to the global grid index. - **Parallel Search**: Multiple IndexWorker servers search in parallel for the moving objects covered by the query range in the candidate cells. - **Incremental Search**: When the query range changes continuously, DRQA uses the results of the previous query to incrementally calculate the latest results at the current time, avoiding recalculation each time. - **Computational Sharing**: When multiple concurrent queries involve the same query area, share the calculation results to improve query efficiency. ### Experimental Setup - **Dataset**: Three datasets of moving objects with different distributions were simulated on the New York road network. - **Performance Evaluation**: Comparison experiments were carried out with three baseline methods to verify the superior performance of DRQA in handling large - scale concurrent range queries. ### Conclusion The paper proposes an effective distributed search solution that can handle a large number of concurrent range queries on large - scale moving objects, significantly improving query efficiency and system performance.