forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert participant_events low-cardinality columns to btree (digital-…
…asset#8667) CHANGELOG_BEGIN - Changed index method type back to B-Tree from Hash for: participant_events_template_id_idx, participant_events_contract_id_idx indices of participant_events table CHANGELOG_END
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...integration-api/src/main/resources/db/migration/postgres/V42__Convert_hash_indices.sha256
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 @@ | ||
70cf33f279dad1830b9a2143e2cf1b50a49b7cb5d9843c0baaf4d113dc839440 |
8 changes: 8 additions & 0 deletions
8
...nt-integration-api/src/main/resources/db/migration/postgres/V42__Convert_hash_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,8 @@ | ||
-- Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
-- SPDX-License-Identifier: Apache-2.0 | ||
|
||
drop index if exists participant_events_template_id_idx; | ||
create index on participant_events(template_id); | ||
|
||
drop index if exists participant_events_contract_id_idx; | ||
create index on participant_events(contract_id); |