-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix #3413] Speed up business key query performance
- Loading branch information
Showing
7 changed files
with
66 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
addons/common/persistence/jdbc/src/main/resources/db/ansi/V10.0.0__add_business_key_ansi.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE business_key_mapping ( | ||
name VARCHAR (255) NOT NULL, | ||
process_instance_id VARCHAR (36) NOT NULL, | ||
CONSTRAINT business_key_primary_key PRIMARY KEY (name), | ||
CONSTRAINT fk_process_instances | ||
FOREIGN KEY (process_instance_id) | ||
REFERENCES process_instances(id) | ||
ON DELETE CASCADE | ||
); | ||
|
||
CREATE INDEX idx_business_key_process_instance_id ON business_key_mapping (process_instance_id); |
12 changes: 12 additions & 0 deletions
12
...ersistence/jdbc/src/main/resources/db/postgresql/V10.0.0__add_business_key_PostgreSQL.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE business_key_mapping ( | ||
name character (255) NOT NULL, | ||
process_instance_id character (36) NOT NULL, | ||
PRIMARY KEY (name), | ||
CONSTRAINT fk_process_instances | ||
FOREIGN KEY (process_instance_id) | ||
REFERENCES process_instances(id) | ||
ON DELETE CASCADE | ||
); | ||
|
||
|
||
CREATE INDEX idx_business_key_process_instance_id ON business_key_mapping (process_instance_id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters