-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added indexes on jBatch tables to improve performances
Signed-off-by: coduz <alberto.codutti@eurotech.com>
- Loading branch information
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
job-engine/jbatch/src/main/resources/liquibase/1.5.0/changelog-job-engine-1.5.0.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2021 Eurotech and/or its affiliates and others | ||
This program and the accompanying materials are made | ||
available under the terms of the Eclipse Public License 2.0 | ||
which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
SPDX-License-Identifier: EPL-2.0 | ||
Contributors: | ||
Eurotech - initial API and implementation | ||
--> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd"> | ||
|
||
<include relativeToChangelogFile="true" file="./job_engine_jbatch-performance_indexes.xml"/> | ||
|
||
</databaseChangeLog> |
45 changes: 45 additions & 0 deletions
45
...ngine/jbatch/src/main/resources/liquibase/1.5.0/job_engine_jbatch-performance_indexes.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2021 Eurotech and/or its affiliates and others | ||
This program and the accompanying materials are made | ||
available under the terms of the Eclipse Public License 2.0 | ||
which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
SPDX-License-Identifier: EPL-2.0 | ||
Contributors: | ||
Eurotech - initial API and implementation | ||
--> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd" | ||
logicalFilePath="KapuaDB/changelog-job_engine_jbatch-1.5.0.xml"> | ||
|
||
<changeSet id="changelog-job_engine_jbatch-1.5.0-performance_indexes" author="eurotech"> | ||
<createIndex tableName="jbtc_checkpoint_data" indexName="idx_checkpointdata_id"> | ||
<column name="id"/> | ||
</createIndex> | ||
|
||
<createIndex tableName="jbtc_execution_instance_data" indexName="idx_executioninstancedata_jobInstanceId-createTime"> | ||
<column name="jobinstanceid"/> | ||
<column name="createtime"/> | ||
</createIndex> | ||
|
||
<createIndex tableName="jbtc_execution_instance_data" indexName="idx_executioninstancedata_batchStatus"> | ||
<column name="batchstatus"/> | ||
</createIndex> | ||
|
||
<createIndex tableName="jbtc_job_instance_data" indexName="idx_jobinstancedata_name"> | ||
<column name="name"/> | ||
</createIndex> | ||
|
||
<createIndex tableName="jbtc_step_execution_instance_data" indexName="idx_stepexecutioninstancedata_jobExecId-stepExecId"> | ||
<column name="jobexecid"/> | ||
<column name="stepexecid"/> | ||
</createIndex> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters