How to handle "Query Timeout" error?
Last updated
Was this helpful?
Last updated
Was this helpful?
"Query Timeout" is a common issue that you will run into when creating or viewing charts. It typically means that the data which you are asking Scout to process is taking too long to process.
If it happens in the Chart Creator, the easiest fix is to narrow down your search conditions in the Filter step. Here are couple common techniques:
1.If the data source that you are working with has a timestamp type field (such as blockTimestamp field in Transactions) , try to limit it with a recent date range such as:
2. If you are searching a specific log, try to use the logs.address field to narrow down the search range whenever possible. There are many smart contracts on Ethereum share the exact same log name, parameters (and methodId). Putting a limit with logs.address can improve the speed and capacity of your pipeline.
The below example searches transactions with a log called Mint (minter, mintAmount, mintTokens). And it only searches the logs from 3 Compound cTokens since all cTokens share the same Mint log.