feat(chainwatch): Add miner index on top_miners_by_base_reward view

This commit is contained in:
Mike Greenberg 2020-07-16 11:32:33 -04:00
parent 7bfcff2c18
commit c3cc2eea46

View File

@ -64,7 +64,10 @@ create materialized view if not exists top_miners_by_base_reward as
miner,
total_reward
from total_rewards_by_miner
group by 2, 3
group by 2, 3;
create index if not exists top_miners_by_base_reward_miner_index
on top_miners_by_base_reward (miner);
`); err != nil {
return err
}