From 523413ed079ea6b61bd2bd877984ae2fe1d4b0fe Mon Sep 17 00:00:00 2001 From: Filipe Oliveira Date: Thu, 5 Oct 2023 13:31:36 +0100 Subject: [PATCH] CORE-17471 - Apply indexing to frequently used columns of the db table `utxo_transaction_output` (#1275) The token selection feature uses db queries frequently. Indexing the columns that are used by those queries will improve performance. This commit indexes the columns `token_type`, `token_issuer_hash`, `token_symbol`, and `token_notary_x500_name` from table `utxo_transaction_output`. --- .../migration/ledger-utxo-creation-v5.1.xml | 34 ++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml index e46d4e1b59..23df1c6f79 100644 --- a/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml +++ b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml @@ -4,17 +4,35 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd"> - - - + + + - + + + + + + + + + + + + + + + + + \ No newline at end of file