perf: add index on pskr_spots_hourly.last_spot_at for /pskreporter ORDER BY

This commit is contained in:
Graham McInitre 2026-07-16 07:20:03 -05:00
parent beed193605
commit c4cd659321

View file

@ -0,0 +1,7 @@
defmodule Microwaveprop.Repo.Migrations.AddLastSpotAtIndex do
use Ecto.Migration
def change do
create index(:pskr_spots_hourly, ["last_spot_at DESC NULLS LAST"])
end
end