diff --git a/CHANGELOG.md b/CHANGELOG.md index 254be981..ce07b95e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/migrations/00000000000000-init.js b/migrations/00000000000000-init.js index 8d94f443..85e39435 100644 --- a/migrations/00000000000000-init.js +++ b/migrations/00000000000000-init.js @@ -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 } }, ]); }, @@ -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"); }, }; + \ No newline at end of file