Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AAE-25874 Create indexes on task and task_process_variable #1547

Merged
merged 5 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* 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_id_name_status ON task(id, name, status);
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* 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_id_name_status ON task(id, name, status);
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,6 @@ 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_id_name_status ON task(id, name, status);
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 @@ -529,4 +529,44 @@
stripComments="true"/>
</changeSet>

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

<changeSet author="activiti-query" runInTransaction="false"
id="alter26-schema" dbms="postgresql">
<sqlFile dbms="postgresql"
encoding="utf8"
path="changelog/26-alter.pg.schema.8.7.0.sql"
relativeToChangelogFile="true"
splitStatements="true"
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>
Loading