Spatial index - improving performance

Doing Point in Polygon with large datasets can be a rather slow operation without optimizing the speed of a look-up query by using spatial indexing. The most commonly used spatial index for boosting up the performance of PIP is R-tree.