Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove duplicate database indices #1024

Merged
merged 2 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ please see [changelog_updates.md](docs/dev/changelog_updates.md).

#### Patch Changes

- Improve database performance by removing duplicate indexes

### Deployment Migration Notes

#### Compatible Versions
Expand Down
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;

Loading