Skip to content

Commit

Permalink
HARMONY-1932: Fix STAC item request hanging.
Browse files Browse the repository at this point in the history
  • Loading branch information
ygliuvt committed Oct 23, 2024
1 parent df459dc commit 56f9e19
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions db/db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ CREATE INDEX jobs_updatedAt_id ON jobs(updatedAt);
CREATE INDEX jobs_status_idx ON jobs(status);
CREATE INDEX jobs_username_idx ON jobs(jobID, username);
CREATE INDEX job_links_jobID_idx ON job_links(jobID);
CREATE INDEX job_links_jobID_id_idx ON job_links(jobID, id);
CREATE INDEX job_errors_jobID_idx ON job_errors(jobID);
CREATE INDEX work_items_jobID_idx ON work_items(jobID);
CREATE INDEX work_items_serviceID_idx ON work_items(serviceID);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.up = function(knex) {
return knex.schema
.table('job_links', function (table) {
table.index(['jobID', 'id']);
});
};

/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.down = function(knex) {
return knex.schema
.table('job_links', function (table) {
table.dropIndex(['jobID', 'id']);
});
};

0 comments on commit 56f9e19

Please sign in to comment.