-
Notifications
You must be signed in to change notification settings - Fork 115
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
Explore usefulness of indexes idx_t_transactions_node_account and idx_t_transactions_payer_id #548
Labels
Comments
Usage of these two indexes ~4 months ago (from here)
Usage of these two indexes today:
|
Additionally, on failover mainnet:
and on dev
|
apeksharma
added a commit
that referenced
this issue
Jun 11, 2020
- Replace foreign keys columns - cud entity, payer account, node account - with encoded entity ids - Use encoded ids in REST to remove joins with t_entities table - Migration testing: Migrating db with ~2.93m transactions took ~20sec. Extrapolating, mainnet with ~150m txns should take less than 30min - Migration is done by creating new transactions table. Index idx_t_transactions_node_account is not created for the new table (#548) - Change DataGenerator to use EntityId rather than just a long for entity num - Remove dead functions from EntityRepository - Now auto renew accounts and proxy accounts are inserted in batch (with other PreparedStatements) rather than synchronously during transaction processing - There is one remaining entity lookup, will fix that later. It won't affect performance of crypto transfer heavy workloads Signed-off-by: Apekshit Sharma <[email protected]>
These indexes no longer exist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In PR#546 (https://github.com/hashgraph/hedera-mirror-node/pull/546#pullrequestreview-361816742), there is a good suggestion to explore usefulness of indexes idx_t_transactions_node_account and idx_t_transactions_payer_id.
We should measure how does it affect (or not) the rest-api queries, and drop them if they are not needed to get some more write performance.
Update:
idx_t_transactions_node_account
was removed in #817The text was updated successfully, but these errors were encountered: