Successfully created an index which overrules default index graphql_account_statement_entries_pkey.
By looking at the execution plan
explain (analyse, verbose, buffers, summary, costs, settings, wal, timing)
select *
from graphql_account_statement_entries
where account_id = 83271
and entry_type >= 6
order by index desc;
explain (analyse, verbose, buffers, summary, costs, settings, wal, timing)
select *
from graphql_account_rewards
where account_id = 83271
order by index desc;
Purpose
See task for full discussion: https://concordium.atlassian.net/browse/CD-947 Initial task: https://github.com/Concordium/concordium-scan/issues/17 Prior PR (which will be closed): https://github.com/Concordium/concordium-scan/pull/60
Successfully created an index which overrules default index
graphql_account_statement_entries_pkey
.By looking at the execution plan
We have
Using the view gives the same
I have validated that locally I’m able to open up details for account
35CJPZohio6Ztii2zy1AYzJKvuxbGG44wrBn7hLHiYLoF2nxnh
which we can’t do on mainnetChanges
graphql_account_statement_entries
which filters out rewards used by viewgraphql_account_rewards
Checklist