Skip to content

Commit

Permalink
AAE-22912 Add index to improve bulk delete performance (#1457)
Browse files Browse the repository at this point in the history
AAE-22912 add index to improve bulk delete performance
  • Loading branch information
mavotto authored Jun 4, 2024
1 parent 021c195 commit 3b6579b
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright 2017-2020 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

CREATE INDEX CONCURRENTLY IF NOT EXISTS task_process_variable_task_id_idx ON task_process_variable (task_id);
CREATE INDEX CONCURRENTLY IF NOT EXISTS task_process_variable_process_variable_id_idx ON task_process_variable (process_variable_id);
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright 2017-2020 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

CREATE INDEX CONCURRENTLY IF NOT EXISTS task_process_variable_task_id_idx ON task_process_variable (task_id);
CREATE INDEX CONCURRENTLY IF NOT EXISTS task_process_variable_process_variable_id_idx ON task_process_variable (process_variable_id);
Original file line number Diff line number Diff line change
Expand Up @@ -462,4 +462,24 @@
stripComments="true"/>
</changeSet>

<changeSet author="activiti-query" runInTransaction="false"
id="alter23-oracle-schema" dbms="oracle">
<sqlFile dbms="oracle"
encoding="utf8"
path="changelog/23-alter.oracle.schema.8.6.0.sql"
relativeToChangelogFile="true"
splitStatements="false"
stripComments="true"/>
</changeSet>

<changeSet author="activiti-query" runInTransaction="false"
id="alter23-schema" dbms="postgresql">
<sqlFile dbms="postgresql"
encoding="utf8"
path="changelog/23-alter.pg.schema.8.6.0.sql"
relativeToChangelogFile="true"
splitStatements="true"
stripComments="true"/>
</changeSet>

</databaseChangeLog>

0 comments on commit 3b6579b

Please sign in to comment.