-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove duplicate database indices (#1024)
* fix: Remove duplicate database indices * fix: Improve documentation
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 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
21 changes: 21 additions & 0 deletions
21
extensions/postgres-flyway/src/main/resources/db/migration/V12__DROP_duplicate_indices.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,21 @@ | ||
-- | ||
-- Copyright (c) 2024 sovity GmbH | ||
-- | ||
-- This program and the accompanying materials are made available under the | ||
-- terms of the Apache License, Version 2.0 which is available at | ||
-- https://www.apache.org/licenses/LICENSE-2.0 | ||
-- | ||
-- SPDX-License-Identifier: Apache-2.0 | ||
-- | ||
-- Contributors: | ||
-- sovity GmbH - Improve database performance by removing duplicate indices | ||
-- | ||
|
||
-- Drop the duplicate indexes if they exist for improved resource usage. | ||
DROP INDEX IF EXISTS contract_agreement_id_uindex; | ||
DROP INDEX IF EXISTS contract_negotiation_id_uindex; | ||
DROP INDEX IF EXISTS data_request_id_uindex; | ||
DROP INDEX IF EXISTS lease_lease_id_uindex; | ||
DROP INDEX IF EXISTS edc_policydefinitions_id_uindex; | ||
DROP INDEX IF EXISTS transfer_process_id_uindex; | ||
|