Scout Chart Creator
  • Overview
  • Get Started
    • Tutorial 1: NMR Daily Transaction Count
    • Tutorial 2: LPT Weekly Volume (USD)
    • Tutorial 3: NMR vs LPT Daily comparison
  • Pipeline
    • Filter
    • Project
    • Group
      • Accumulators
    • Sort
    • Unwind
    • Custom
  • Data Source
    • Transactions
    • States
    • Contracts
    • Aragon
    • Livepeer
    • dYdX
    • Set
    • Token holders
  • Operators
    • Math operators
    • Logic operators
    • Function operators
    • Array operators
    • String operators
  • Config
  • Protocols
    • Dodo
      • 24H trade volume
      • Deposit & Withdraw
    • Livepeer
    • dYdX
      • Making sense of the trade data
    • MakerDao
    • Pickle Finance
      • Example: Daily deposit and withdraw of jar 0.88
      • Example: Listing all borrows of a strategy
  • FAQ
    • Dealing with "logs" field in "Transaction"
    • How to handle "Query Timeout" error?
    • How to use a variable in a Pipeline
  • Research
    • The circulating supply of DODO tokens
    • How are bitcoins doing on Ethereum? (as of Jan 20th 2021)
Powered by GitBook
On this page

Was this helpful?

  1. FAQ

How to handle "Query Timeout" error?

PreviousDealing with "logs" field in "Transaction"NextHow to use a variable in a Pipeline

Last updated 4 years ago

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 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 ) , try to limit it with a recent date range such as:

This does not affect your final chart unless you turn off the "Respond to the date filter" option.

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.

There is a limit on how much you can improve your pipeline in order to avoid "Query Timeout". If you have tried above techniques and are still encountering the issue, it's time to ping us at support@scout.cool. The next step for us is to build a customized data source to further reduce any data transformation that's required for your chart.

Filter
Transactions
Add a "blockTimestamp" condition in the Filter
the cTokens on Compound share the exact same "Mint" log