Moment at 6:50 in I replaced my entire stack with Postgres... by The Coding Gopher.
The **PostGIS** extension uses **GIST (Generalized Search Tree)** indexes to draw bounding boxes around geographic shapes, discarding irrelevant data points before performing heavy geometric calculations
Saved by Arn D.