Composite indexes for geolite_locations

FeatureInitializerService
Shipped
August 21, 2026 at 1:36 AM UTC
Author
Kamo
Commit
53561df

Country alone was the only index on an 80,429-row table. Measured on production: city resolution (country + subdivision) index-scanned all 18,870 US rows to keep 984 for US+CA (138 ms), and the country picker sequential-scanned all 80,429 rows to return 251 (168 ms). Purely additive, idempotent, same 40001 retry as the sibling index migrations. Near-free on this table — it is replaced wholesale by the weekly GeoLite sync and never written on a request path.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing