KamoCRM

Composite indexes for geolite_locations

FeatureInitializerService
Shipped
21 ஆகஸ்ட், 2026 அன்று 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?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing