Skip to content

Commit

Permalink
fix: Remove duplicate database indices (#1024)
Browse files Browse the repository at this point in the history
* fix: Remove duplicate database indices
* fix: Improve documentation
  • Loading branch information
yylian authored Aug 13, 2024
1 parent 0e135d8 commit 40b20ee
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
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;

0 comments on commit 40b20ee

Please sign in to comment.