-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add indexes to foreign keys - Attempting to resolve slow editor loading issues * Update CHANGELOG * Make index additions idempotent * Remove conflict artifact from CHANGELOG.md
- Loading branch information
1 parent
f0f6111
commit acc7f12
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
priv/repo/migrations/20250122110318_index_workflow_id_on_workflow_edges.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defmodule Lightning.Repo.Migrations.IndexWorkflowIdOnWorkflowEdges do | ||
use Ecto.Migration | ||
|
||
def change do | ||
create_if_not_exists index(:workflow_edges, [:workflow_id]) | ||
end | ||
end |
7 changes: 7 additions & 0 deletions
7
priv/repo/migrations/20250122110504_index_job_id_on_steps.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defmodule Lightning.Repo.Migrations.IndexJobIdOnSteps do | ||
use Ecto.Migration | ||
|
||
def change do | ||
create_if_not_exists index(:steps, [:job_id]) | ||
end | ||
end |