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

Populate the next link for endpoints with implicit timestamp range #9380

Closed steven-sheehy closed 1 week ago

steven-sheehy commented 2 weeks ago

Problem

As part of our sharded database optimization efforts, we made changes to add an implicit timestamp range to some APIs to limit how many shards they can scan in one query. This means customers could potentially get no results and no next link but still have results.

Solution

As a performance compromise we can populate the next link for these type of requests if we clamped the timestamp range and there's less than limit results.

Alternatives

No response