Spatial queries with two kNN predicates

Ahmed M. Aly, Walid G. Aref, Mourad Ouzzani

Research output: Contribution to journalArticle

12 Citations (Scopus)


The widespread use of location-aware devices has led to countless location-based services in which a user query can be arbitrarily complex, i.e., one that embeds multiple spatial selection and join predicates. Amongst these predicates, the k-Nearest-Neighbor (kNN) predicate stands as one of the most important and widely used predicates. Unlike related research, this paper goes beyond the optimization of queries with single kNN predicates, and shows how queries with two kNN predicates can be optimized. In particular, the paper addresses the optimization of queries with: (i) two kNN-select predicates, (ii) two kNN-join predicates, and (iii) one kNN-join predicate and one kNN-select predicate. For each type of queries, conceptually correct query evaluation plans (QEPs) and new algorithms that optimize the query execution time are presented. Experimental results demonstrate that the proposed algorithms outperform the conceptually correct QEPs by orders of magnitude.

Original languageEnglish
Pages (from-to)1100-1111
Number of pages12
JournalProceedings of the VLDB Endowment
Issue number11
Publication statusPublished - Jul 2012

ASJC Scopus subject areas

  • Computer Science (miscellaneous)
  • Computer Science(all)

Fingerprint Dive into the research topics of 'Spatial queries with two kNN predicates'. Together they form a unique fingerprint.

  • Cite this