Skip to content

Commit

Permalink
Improve repair and history performance in most cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 27, 2023
1 parent ffa755d commit aca160f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

10.28 2023-11-21
10.28 2023-11-217
- Improved repair and history performance in most cases.

10.27 2023-11-20
- Improved repair performance in cases where there are a lot of finished jobs with dependencies.
Expand Down
3 changes: 3 additions & 0 deletions lib/Minion/Backend/resources/migrations/pg.sql
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,6 @@ CREATE INDEX ON minion_jobs (expires);

-- 23 up
ALTER TABLE minion_jobs ADD COLUMN lax BOOL NOT NULL DEFAULT FALSE;

-- 24 up
CREATE INDEX ON minion_jobs (finished, state);
4 changes: 2 additions & 2 deletions t/pg.t
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ subtest 'Nothing to repair' => sub {
};

subtest 'Migrate up and down' => sub {
is $minion->backend->pg->migrations->active, 23, 'active version is 23';
is $minion->backend->pg->migrations->active, 24, 'active version is 24';
is $minion->backend->pg->migrations->migrate(0)->active, 0, 'active version is 0';
is $minion->backend->pg->migrations->migrate->active, 23, 'active version is 23';
is $minion->backend->pg->migrations->migrate->active, 24, 'active version is 24';
};

subtest 'Register and unregister' => sub {
Expand Down

0 comments on commit aca160f

Please sign in to comment.