diff --git a/spring-batch-core/src/main/resources/org/springframework/batch/core/schema-mongodb.jsonl b/spring-batch-core/src/main/resources/org/springframework/batch/core/schema-mongodb.jsonl index 66f85ab7d6..015da780bb 100644 --- a/spring-batch-core/src/main/resources/org/springframework/batch/core/schema-mongodb.jsonl +++ b/spring-batch-core/src/main/resources/org/springframework/batch/core/schema-mongodb.jsonl @@ -5,3 +5,6 @@ {insert: "BATCH_SEQUENCES", documents: [ { _id: 'BATCH_JOB_INSTANCE_SEQ', count: NumberLong(0) } ]} {insert: "BATCH_SEQUENCES", documents: [ { _id: 'BATCH_JOB_EXECUTION_SEQ', count: NumberLong(0) } ]} {insert: "BATCH_SEQUENCES", documents: [ { _id: 'BATCH_STEP_EXECUTION_SEQ', count: NumberLong(0) } ]} +{createIndexes: "BATCH_JOB_INSTANCE", indexes: [{key: {jobName: 1}, name: "job_name_idx"}, {key: {jobName: 1, jobKey: 1}, name: "job_name_key_idx"}, {key: {jobInstanceId: -1}, name: "job_instance_idx"}]} +{createIndexes: "BATCH_JOB_EXECUTION", indexes: [{key: {jobInstanceId: 1}, name: "job_instance_idx"}, {key: {jobInstanceId: 1, status: 1}, name: "job_instance_status_idx"}]} +{createIndexes: "BATCH_STEP_EXECUTION", indexes: [{key: {stepExecutionId: 1}, name: "step_execution_idx"}]}