perf: add index on pskr_spots_hourly.last_spot_at for /pskreporter ORDER BY
This commit is contained in:
parent
beed193605
commit
c4cd659321
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue