Query History
The Query History feature in Cube Cloud is a one-stop shop for all performance and diagnostic information about queries issued for a deployment. It provides a real-time and historic view of requests to data APIs of your Cube Cloud deployment, so you can check whether queries were accelerated with pre-aggregations, how long they took to execute, and if they failed.Available on all plans.
You can also choose a Query History tier.
Setting the time range
By default, Cube Cloud shows you a live feed of queries made to the API and connected data sources. You can navigate throughout the query history by using the date picker in the top right corner of the page and selecting a time period:Exploring queries
You can switch between queries made to the API and queries made to connected data sources by switching between the API and Database tabs.All queries and top queries
Clicking All Queries will show all queries in order of recency, while Top Queries will show the queries with the largest total duration (hits * avg duration) in the selected time frame. Both results are limited to 100 unique queries.Filtering
You can use filters to find queries by various criteria:- duration,
- cache status,
- whether the query was accelerated with pre-aggregations,
- whether the query yielded an error,
- API type.
Inspecting API queries
In the table, all queries are shown in their collapsed view by default. To see an expanded view of a query, click on the ❯ button to the left of any query.- Query column shows a representation of a query, similar to the REST API query format. In case of the SQL API, if the query is not coercible to a REST API query, raw SQL is shown “as is.”
- API column shows the API type that was used to run the query: REST API via HTTP transport, REST API via WebSockets, GraphQL API, or SQL API.
- Duration column shows how long the query took.
- Bolt icon indicates the cache type that was used to fulfill the query.
- Time column shows the point in time the query was run at.