fetchai / ledger-subquery

This is the Fetch Ledger SubQuery project, an indexer for the Fetch network.
MIT License
2 stars 10 forks source link

Bug report: Getting latest transactions is painfully slow #246

Closed MBeliou closed 1 year ago

MBeliou commented 1 year ago

Prerequisites

Expected Behavior

Getting transactions ordered by block height descending should be fast enough without having to include additional filters.

Current Behavior

Query goes through but seems to be clocking at around 46 seconds for the 20 latest transactions. Including an offset does not seem to have a meaningful impact on the time.

Steps To Reproduce

Run this query on the fetch mainnet subquery ui. query latestTransactions { transactions(first: 20, orderBy: TRANSACTIONS_BY_BLOCK_HEIGHT_DESC) { nodes { block { height } } } }

Context

No response

Failure Logs

No response

Jonathansumner commented 1 year ago

closed with #263