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

[kie-issues#923] Add index to foreign key columns to improve performance in postgresql #1985

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all 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 @@
create index if not exists idx_attachments_tid on attachments(task_id);
create index if not exists idx_comments_tid on comments(task_id);
create index if not exists idx_definitions_addons_pid_pv on definitions_addons(process_id, process_version);
create index if not exists idx_definitions_annotations_pid_pv on definitions_annotations(process_id, process_version);
create index if not exists idx_definitions_metadata_pid_pv on definitions_metadata(process_id, process_version);
create index if not exists idx_definitions_nodes_pid_pv on definitions_nodes(process_id, process_version);
create index if not exists idx_definitions_nodes_metadata_pid_pv on definitions_nodes_metadata(process_id, process_version);
create index if not exists idx_definitions_roles_pid_pv on definitions_roles(process_id, process_version);
create index if not exists idx_milestones_piid on milestones(process_instance_id);
create index if not exists idx_nodes_piid on nodes(process_instance_id);
create index if not exists idx_processes_addons_pid on processes_addons(process_id);
create index if not exists idx_processes_roles_pid on processes_roles(process_id);
create index if not exists idx_tasks_admin_groups_tid on tasks_admin_groups(task_id);
create index if not exists idx_tasks_admin_users_tid on tasks_admin_users(task_id);
create index if not exists idx_tasks_excluded_users_tid on tasks_excluded_users(task_id);
create index if not exists idx_tasks_potential_groups_tid on tasks_potential_groups(task_id);
create index if not exists idx_tasks_potential_users_tid on tasks_potential_users(task_id);
Loading