mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
enable json index for all fields that are queried with JSON_EXISTS (#10658)
* fixes #9975 - enable json index for all fields that we run JSON_EXISTS queries against CHANGELOG_BEGIN CHANGELOG_END * fixes #9975 - enable json index for all fields that we run JSON_EXISTS queries against recompute sha CHANGELOG_BEGIN CHANGELOG_END
This commit is contained in:
parent
6c1c02aeea
commit
e7c443a596
@ -1 +1 @@
|
||||
0d6af3e9a9d4537558102484dca7768178ca310cfe62debb8a88f1b4312fc869
|
||||
1d1d77ce01814bbfabe592ef224193b05743fc6d1459b487fcc7fc527110b2c9
|
||||
|
@ -188,7 +188,7 @@ CREATE INDEX participant_events_divulgence_template_id_idx ON participant_events
|
||||
-- GetActiveContracts (flat), GetTransactions (flat) and GetTransactionTrees.
|
||||
-- Note that Potsgres has trouble using these indices effectively with our paged access.
|
||||
-- We might decide to drop them.
|
||||
-- TODO https://github.com/digital-asset/daml/issues/9975 these indices are never hit - add back once all are on oracle 19.11 or above
|
||||
CREATE SEARCH INDEX participant_events_divulgence_tree_event_witnesses_idx ON participant_events_divulgence (tree_event_witnesses) FOR JSON;
|
||||
|
||||
-- lookup divulgance events, in order of ingestion
|
||||
CREATE INDEX participant_events_divulgence_contract_id_idx ON participant_events_divulgence(contract_id, event_sequential_id);
|
||||
@ -256,7 +256,8 @@ CREATE INDEX participant_events_create_template_id_idx ON participant_events_cre
|
||||
-- GetActiveContracts (flat), GetTransactions (flat) and GetTransactionTrees.
|
||||
-- Note that Potsgres has trouble using these indices effectively with our paged access.
|
||||
-- We might decide to drop them.
|
||||
-- TODO https://github.com/digital-asset/daml/issues/9975 these indices are never hit - add back once all are on oracle 19.11 or above
|
||||
CREATE SEARCH INDEX participant_events_create_flat_event_witnesses_idx ON participant_events_create (flat_event_witnesses) FOR JSON;
|
||||
CREATE SEARCH INDEX participant_events_create_tree_event_witnesses_idx ON participant_events_create (tree_event_witnesses) FOR JSON;
|
||||
|
||||
-- lookup by contract id
|
||||
CREATE INDEX participant_events_create_contract_id_idx ON participant_events_create(contract_id);
|
||||
@ -326,9 +327,8 @@ CREATE INDEX participant_events_consuming_exercise_template_id_idx ON participan
|
||||
|
||||
-- filtering by witnesses (visibility) for some queries used in the implementation of
|
||||
-- GetActiveContracts (flat), GetTransactions (flat) and GetTransactionTrees.
|
||||
-- Note that Potsgres has trouble using these indices effectively with our paged access.
|
||||
-- We might decide to drop them.
|
||||
-- TODO https://github.com/digital-asset/daml/issues/9975 these indices are never hit - add back once all are on oracle 19.11 or above
|
||||
CREATE SEARCH INDEX participant_events_consuming_exercise_flat_event_witnesses_idx ON participant_events_consuming_exercise (flat_event_witnesses) FOR JSON;
|
||||
CREATE SEARCH INDEX participant_events_consuming_exercise_tree_event_witnesses_idx ON participant_events_consuming_exercise (tree_event_witnesses) FOR JSON;
|
||||
|
||||
-- lookup by contract id
|
||||
CREATE INDEX participant_events_consuming_exercise_contract_id_idx ON participant_events_consuming_exercise (contract_id);
|
||||
@ -396,8 +396,8 @@ CREATE INDEX participant_events_non_consuming_exercise_template_id_idx ON partic
|
||||
-- filtering by witnesses (visibility) for some queries used in the implementation of
|
||||
-- GetActiveContracts (flat), GetTransactions (flat) and GetTransactionTrees.
|
||||
-- There is no equivalent to GIN index for oracle, but we explicitly mark as a JSON column for indexing
|
||||
-- NOTE: index name truncated because the full name exceeds the 63 characters length limit
|
||||
-- TODO https://github.com/digital-asset/daml/issues/9975 these indices are never hit - add back once all are on oracle 19.11 or above
|
||||
CREATE SEARCH INDEX participant_events_non_consuming_exercise_flat_event_witness_idx ON participant_events_non_consuming_exercise (flat_event_witnesses) FOR JSON;
|
||||
CREATE SEARCH INDEX participant_events_non_consuming_exercise_tree_event_witness_idx ON participant_events_non_consuming_exercise (tree_event_witnesses) FOR JSON;
|
||||
|
||||
CREATE VIEW participant_events AS
|
||||
SELECT cast(0 as SMALLINT) AS event_kind,
|
||||
|
Loading…
Reference in New Issue
Block a user