This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #851 from joyent/ether/fix-slow-validation_result-…
…inserts v2: fix slow validation result inserts
- Loading branch information
Showing
3 changed files
with
17 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SELECT run_migration(92, $$ | ||
|
||
-- this is used when inserting validation_state + validation_state_member + | ||
-- validation_result records at the end of running a validation_plan and we seek | ||
-- to re-use old records where possible instead of creating a new ones | ||
create index validation_result_all_columns_idx on validation_result | ||
(device_id, hardware_product_id, validation_id, message, hint, status, category, component_id, result_order); | ||
|
||
$$); |
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