hashgraph / hedera-mirror-node

Hedera Mirror Node archives data from consensus nodes and serves it via an API
Apache License 2.0
128 stars 108 forks source link

Undistribute staking_reward_transfer in V2 #9320

Open xin-hedera opened 3 weeks ago

xin-hedera commented 3 weeks ago

Problem

staking_reward_transfer is distributed in V2 on account_id so it's performant to query certain account(s) staking reward transfers. However, given a set of consensus timestamps, querying the staking reward transfers become all-shard slow query.

The table is very small, and partitioned monthly. The max number of rows so far in a partition is around 730k. It should be undistributed for better performance

Solution

Alternatives

No response