Two Columns, One Circle
A restaurants table has separate B-tree indexes on lat and lng, and the query "everything within 2 km of this point" scans hundreds of thousands of rows before filtering down to 40. Why does adding a spatial index help?
Sign in to answer questions and track your progress
Sign In