Skip to content

Commit 200a037

Browse files
Update fhir-persistence-schema/src/main/java/com/ibm/fhir/schema/control/FhirResourceGroup.java
Signed-off-by: Paul Bastide <pbastide@us.ibm.com> Co-Authored-By: Paul Bastide <pbastide@us.ibm.com>
1 parent 501d41c commit 200a037

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fhir-persistence-schema/src/main/java/com/ibm/fhir/schema/control/FhirResourceGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public void addLogicalResources(List<IDatabaseObject> group, String prefix) {
159159
.setTablespace(fhirTablespace)
160160
.addPrivileges(resourceTablePrivileges)
161161
.enableAccessControl(this.sessionVariable)
162-
// Add indexes to avoid dead lock issue of derby
162+
// Add indexes to avoid dead lock issue of derby, and improve Db2 performance
163163
// Derby requires all columns used in where clause to be indexed, otherwise whole table lock will be
164164
// used instead of row lock, which can cause dead lock issue frequently during concurrent accesses.
165165
.addIndex(IDX + tableName + CURRENT_RESOURCE_ID, CURRENT_RESOURCE_ID)

0 commit comments

Comments
 (0)