Skip to content

Commit

Permalink
fix: indexing for get_jobs_without_successor
Browse files Browse the repository at this point in the history
  • Loading branch information
heemankv committed Nov 4, 2024
1 parent 85aacf6 commit 208ffb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## Fixed

- indexing for get_jobs_without_successor
- wait for transaction logic in ethereum settlement client
- y_0 point evaluation in build kzg proof for ethereum settlement
- fixed metrics name, signoz dashboard.
Expand Down
6 changes: 6 additions & 0 deletions migrations/00000000000000-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ module.exports = {
{ key: { job_type: 1, internal_id: -1 }, unique: true },
{ key: { job_type: 1, status: 1, internal_id: -1 } },
{ key: { status: 1 } },
// primarily for get_jobs_without_successor
{ key: { job_type: 1, status: 1 } },
{ key: { job_type: 1, internal_id: 1 } },
]);
},

Expand All @@ -17,5 +20,8 @@ module.exports = {
await db.collection("jobs").dropIndex("job_type_1_internal_id_-1");
await db.collection("jobs").dropIndex("job_type_1_status_1_internal_id_-1");
await db.collection("jobs").dropIndex("status_1");
await db.collection("jobs").dropIndex("job_type_1_status_1");
await db.collection("jobs").dropIndex("job_type_1_internal_id_1");
},
};

0 comments on commit 208ffb8

Please sign in to comment.