-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform data retention purging in batches to avoid timeouts (#2547)
* Perform data retention purging in batches to avoid timeouts --------- Co-authored-by: Stuart Corbishley <corbish@gmail.com>
- Loading branch information
1 parent
8db94e3
commit 1d89c4b
Showing
4 changed files
with
89 additions
and
49 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
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
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/20241004145159_create_work_order_last_activity_index.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.CreateWorkOrderLastActivityIndex do | ||
use Ecto.Migration | ||
|
||
def change do | ||
create index("work_orders", [:last_activity]) | ||
end | ||
end |