- Add index on weather_stations(station_type, lat, lon) for nearby_stations - Add UPPER(station1/2) expression indexes for callsign search - Batch sync_network ~3K individual Repo.insert calls into one insert_all - Batch Oban.insert calls in insert_unique into Oban.insert_all - Log warnings on station elevation Repo.update errors instead of discarding - Wrap reconcile_mission_paths delete+insert in Repo.transaction - BeaconLive.Index: targeted stream_insert/delete instead of full re-query+push_patch - RoverPlanningLive.Show: re-fetch single path instead of re-querying all - PskrSpotsLive: convert to LiveView streams, add 60s auto-refresh - ImportConfetti: add missing phx-update=ignore
7 lines
180 B
Elixir
7 lines
180 B
Elixir
defmodule Microwaveprop.Repo.Migrations.AddWeatherStationsIndex do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create index(:weather_stations, [:station_type, :lat, :lon])
|
|
end
|
|
end
|