From f618b80903db9f2af1890ed9984fa7fa7bd51bfc Mon Sep 17 00:00:00 2001 From: "adam.magyari" Date: Tue, 3 Dec 2024 13:47:39 +0100 Subject: [PATCH] FINERACT-1926: Additional indices to investor tables --- .../investor/module-changelog-master.xml | 1 + ...013_add_additional_asset_owner_indices.xml | 70 +++++++++++++++++++ .../db/changelog/tenant/changelog-tenant.xml | 1 + ...eate_index_m_loan_transaction_relation.xml | 47 +++++++++++++ 4 files changed, 119 insertions(+) create mode 100644 fineract-investor/src/main/resources/db/changelog/tenant/module/investor/parts/0013_add_additional_asset_owner_indices.xml create mode 100644 fineract-provider/src/main/resources/db/changelog/tenant/parts/0157_create_index_m_loan_transaction_relation.xml diff --git a/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/module-changelog-master.xml b/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/module-changelog-master.xml index 27860317f61..39ea60c9802 100644 --- a/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/module-changelog-master.xml +++ b/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/module-changelog-master.xml @@ -34,4 +34,5 @@ + diff --git a/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/parts/0013_add_additional_asset_owner_indices.xml b/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/parts/0013_add_additional_asset_owner_indices.xml new file mode 100644 index 00000000000..a525afc797c --- /dev/null +++ b/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/parts/0013_add_additional_asset_owner_indices.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + create index concurrently IDX_e_asset_o_transfer_loan_mapping_owner_transfer_id on m_external_asset_owner_transfer_loan_mapping(owner_transfer_id); + + + + + + + + + + + create index concurrently IDX_e_asset_o_transfer_journal_entry_mapping_owner_transfer_id on m_external_asset_owner_transfer_journal_entry_mapping(owner_transfer_id); + + + + + + + + + + + create index concurrently IDX_e_asset_o_transfer_journal_entry_mapping_journal_entry_id on m_external_asset_owner_transfer_journal_entry_mapping(journal_entry_id); + + + + + + + + + + + create index concurrently IDX_e_asset_o_journal_entry_mapping_journal_entry_id on m_external_asset_owner_journal_entry_mapping(journal_entry_id); + + + diff --git a/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml b/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml index b01cf4d545b..24619ba2dae 100644 --- a/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml +++ b/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml @@ -175,4 +175,5 @@ + diff --git a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0157_create_index_m_loan_transaction_relation.xml b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0157_create_index_m_loan_transaction_relation.xml new file mode 100644 index 00000000000..82a73f1c992 --- /dev/null +++ b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0157_create_index_m_loan_transaction_relation.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + create index concurrently IDX_M_LOAN_TRANSACTION_RELATION_TO_LOAN_TRANSACTION_ID on m_loan_transaction_relation(to_loan_transaction_id); + + + + + + + + + + create index concurrently IDX_M_LOAN_TRANSACTION_RELATION_TO_LOAN_CHARGE_ID on m_loan_transaction_relation(to_loan_charge_id); + + +