Query Lifetime

The lifetime of a query and availability of the results depends on the type of query:

  • For a live query, the query continues running providing the historical part has completed for a long time. This is to allow live queries to show data quickly so that when a dashboard, for example, is opened the dashboard can be populated quickly.

  • For static (non-live) queries, the query is kept alive if the query is still being polled (see Polling a Query Job). The default interval is 60 seconds for the query to time out if the query is not polled.

Because queries imply the storage of state information for all the relevant events, effective management of the active queries in the system is critical to maximize the memory available for active queries.