Skip to content

Commit

Permalink
Oracle append-only schema: enable contract id index on participant_ev…
Browse files Browse the repository at this point in the history
…ents_xxxx tables (#10633)

* Enable contract id index on oracle participant_events_xxx tables in append only schema

* update oracle append sqlfile sha

* fixes #10125

* update sha

CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
dasormeter authored Aug 19, 2021
1 parent 3598e09 commit c4513f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b5e44d2e0e0135b3b41d14ff9cde16300e58bdc7ef025c964a2d24e0da767ff2
c9148396eec01471c1135ff384d0b83442442ada1d6ca12d731f8e84b6f4869f
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ CREATE INDEX participant_events_create_flat_event_witnesses_idx ON participant_e
CREATE INDEX participant_events_create_tree_event_witnesses_idx ON participant_events_create(JSON_ARRAY(tree_event_witnesses));

-- lookup by contract id
-- TODO https://github.com/digital-asset/daml/issues/10125 double-check how the HASH should work and that it is actually hit
CREATE INDEX participant_events_create_contract_id_idx ON participant_events_create(ORA_HASH(contract_id));
CREATE INDEX participant_events_create_contract_id_idx ON participant_events_create(contract_id);

-- lookup by contract_key
CREATE INDEX participant_events_create_create_key_hash_idx ON participant_events_create(create_key_hash, event_sequential_id);
Expand Down Expand Up @@ -336,8 +335,7 @@ CREATE INDEX participant_events_consuming_exercise_flat_event_witnesses_idx ON p
CREATE INDEX participant_events_consuming_exercise_tree_event_witnesses_idx ON participant_events_consuming_exercise (JSON_ARRAY(tree_event_witnesses));

-- lookup by contract id
-- TODO https://github.com/digital-asset/daml/issues/10125 double-check how the HASH should work and that it is actually hit
CREATE INDEX participant_events_consuming_exercise_contract_id_idx ON participant_events_consuming_exercise (ORA_HASH(contract_id));
CREATE INDEX participant_events_consuming_exercise_contract_id_idx ON participant_events_consuming_exercise (contract_id);

---------------------------------------------------------------------------------------------------
-- Events table: non-consuming exercise
Expand Down

0 comments on commit c4513f2

Please sign in to comment.