Skip to content

Commit

Permalink
AAE-25874 Create indexes on task and task_process_variable (#1547)
Browse files Browse the repository at this point in the history
* AAE-25756 Add Query service schema index for task id,name and status attributes

* AAE-25874 add indexes

* Update h2.schema.sql

---------

Co-authored-by: Igor Dianov <[email protected]>
  • Loading branch information
tom-dal and igdianov authored Sep 30, 2024
1 parent bcc1df3 commit ac956d5
Show file tree
Hide file tree
Showing 4 changed files with 57 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 idx_task_process_var_taskId_processVarId ON task_process_variable (task_id, process_variable_id);
CREATE INDEX idx_task_createdDate ON task (created_date);
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 idx_task_process_var_taskId_processVarId ON task_process_variable (task_id, process_variable_id);
CREATE INDEX idx_task_createdDate ON task (created_date);
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,5 @@ alter table task_process_variable
create index idx_task_assignee on task(assignee);
create index idx_task_owner on task(owner);
create index idx_process_instance_initiator on process_instance(initiator);
CREATE INDEX idx_task_process_var_taskId_processVarId ON task_process_variable (task_id, process_variable_id);
CREATE INDEX idx_task_createdDate ON task (created_date);
Original file line number Diff line number Diff line change
Expand Up @@ -549,4 +549,23 @@
stripComments="true"/>
</changeSet>

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

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

0 comments on commit ac956d5

Please sign in to comment.