Much like we do for receipts, we could store transactions grouped by their block height.
This will improve performance for the block endpoints which have to traverse all the included transactions.
Currently, the transactions are indexed by their transaction hash, and for blocks with a large number of transactions, we would have to make a DB call, to fetch each transaction.
Much like we do for receipts, we could store transactions grouped by their block height.
This will improve performance for the block endpoints which have to traverse all the included transactions.
Currently, the transactions are indexed by their transaction hash, and for blocks with a large number of transactions, we would have to make a DB call, to fetch each transaction.