-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eafe5cf
commit 675384a
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...on/src/main/resources/metadata_changesets/index_add_workflow_call_scatter_attempt_key.xml
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,26 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<databaseChangeLog objectQuotingStrategy="QUOTE_ALL_OBJECTS" | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd"> | ||
|
||
<changeSet id="index_add_workflow_call_scatter_attempt_key" author="anichols" dbms="hsqldb,mariadb,mysql,postgresql"> | ||
<!-- | ||
This index creates at about 3M rows per minute on MySQL. | ||
That would be an impossible multi-day downtime in Terra, so we manually pre-create the index asynchronously. | ||
This changeset detects environments where this has been done and immediately marks itself as applied. | ||
--> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists indexName="IX_METADATA_ENTRY_WEU_CF_JSI_JRA_MK"/> | ||
</not> | ||
</preConditions> | ||
<createIndex indexName="IX_METADATA_ENTRY_WEU_CF_JSI_JRA_MK" tableName="METADATA_ENTRY"> | ||
<column name="WORKFLOW_EXECUTION_UUID"/> | ||
<column name="CALL_FQN"/> | ||
<column name="JOB_SCATTER_INDEX"/> | ||
<column name="JOB_RETRY_ATTEMPT"/> | ||
<column name="METADATA_KEY"/> | ||
</createIndex> | ||
</changeSet> | ||
</databaseChangeLog> |
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