-
Bug
-
Resolution: Done
-
Major
-
7.12.0.Final
-
NEW
-
NEW
-
If we use mysql5-jbpm-schema.sql (https://github.com/kiegroup/jbpm/blob/7.12.0.Final/jbpm-installer/src/main/resources/db/ddl-scripts/mysql5/mysql5-jbpm-schema.sql), we will see redundant indexes on many columns.
For example,
-----------------------------------------------------------------------------------------
table_name | index_name | column_name |
-----------------------------------------------------------------------------------------
attachment | FK_7ndpfa311i50bq7hy18q05va3 | attachedBy_id |
attachment | IDX_Attachment_Id | attachedBy_id |
This is because mysql5-jbpm-schema.sql creates an index on FK.
~~~
alter table Attachment
add index FK_7ndpfa311i50bq7hy18q05va3 (attachedBy_id),
add constraint FK_7ndpfa311i50bq7hy18q05va3
foreign key (attachedBy_id)
references OrganizationalEntity (id);
~~~
and creates one more index for the same column.
~~~
create index IDX_Attachment_Id ON Attachment(attachedBy_id);
~~~
Such redundant indexes may decrease the database performance.
- is incorporated by
-
RHPAM-1640 Redundant index in mysql5-jbpm-schema.sql
- Closed