Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORE-17471 - Apply indexing to frequently used columns of the db table utxo_transaction_output #1275

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

filipesoliveira
Copy link
Contributor

@filipesoliveira filipesoliveira commented Oct 4, 2023

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.

DB query details for the token balance execution:
image

DB query details for the token selection execution:
image

@corda-jenkins-ci02
Copy link
Contributor

corda-jenkins-ci02 bot commented Oct 4, 2023

Jenkins build for PR 1275 build 3

Build Successful:
Jar artifact version produced by this PR: 5.1.0.28-alpha-1696497803935

@filipesoliveira filipesoliveira force-pushed the filipe.oliveira/CORE-17471 branch from 51f052d to 7c916f6 Compare October 5, 2023 09:09
@vlajos
Copy link
Contributor

vlajos commented Oct 5, 2023

#1270 has some related updates.
That one is renaming tables used by this/etc.

Copy link
Contributor

@relyafi relyafi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment regarding style. I think we need to review how we are defining changesets generally, but that is a broader question and I don't think we should tackle that as part of this PR.

The PR however does need a description and some test notes, to provide background to the change. I'm assuming we should be able to demonstrate the new indexes being used by running the SQL queries that utilise these indexes with EXPLAIN ANALYSE.

Copy link
Contributor

@relyafi relyafi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@filipesoliveira filipesoliveira merged commit 523413e into release/os/5.1 Oct 5, 2023
5 checks passed
@filipesoliveira filipesoliveira deleted the filipe.oliveira/CORE-17471 branch October 5, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants