Indexed Fields Reference for where and orderBy
Use indexed fields in your where filters and orderBy clauses. Filtering or sorting on non-indexed fields can lead to slow queries, timeouts.
This page lists the fields that are indexed for each cube, dataset, and chain type. Prefer these fields when building where and orderBy conditions.
Best practice
In where, filter on at least one indexed field (Index 1, 2, 3, or 4 where applicable). In orderBy, sort by an indexed field when possible.
EVM (Archive)
| Cube | Index 1 | Index 2 | Index 3 | Index 4 |
|---|---|---|---|---|
| BalanceUpdates | BalanceUpdate_Address | Currency_SmartContract | Transaction_Hash | — |
| Blocks | Block_Hash | Block_Number | — | — |
| Calls | Call_From | Call_To | Transaction_Hash | — |
| DEXTrades | Transaction_Hash | — | — | — |
| DEXTradeByTokens | Trade_Currency_SmartContract | Trade_Side_Seller | — | — |
| Events | Call_To | Transaction_Hash | — | — |
| MinerRewards | Block_Coinbase | Block_Number | Block_Hash | — |
| TokenHolders | Currency_SmartContract | — | — | — |
| Transactions | Transaction_From | Transaction_Hash | Transaction_To | — |
| Transfers | Transaction_Hash | Transfer_Sender | Transfer_Receiver | Transfer_Currency_SmartContract |
Tron (Archive)
| Cube | Index 1 | Index 2 | Index 3 | Index 4 |
|---|---|---|---|---|
| BalanceUpdates | BalanceUpdate_Address | Currency_SmartContract | Transaction_Hash | — |
| Blocks | Block_Hash | Block_Number | — | — |
| Calls | Call_From | Call_To | Transaction_Hash | — |
| DEXTrades | Transaction_Hash | — | — |