> For the complete documentation index, see [llms.txt](https://docs.selectstar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.selectstar.com/data-source-management/recent-queries.md).

# Recent Queries

Identify long-running and expensive queries, access detailed information, and navigate to related tables for streamlined query performance analysis in Select Star.

You can see all the recent queries that have been run on a database in one place to easily identify long-running and expensive queries.

Go to **Settings.**

![](https://3470314135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgAiVthA_yg9UXKuhyY%2Fuploads%2Fgit-blob-869fa9b96c8e2bfb9d4bdc48d1b6d29dd3cea07a%2FSettings%20Menu.png?alt=media\&token=84d93b8a-4c0e-474e-8101-77c426295cd2)

Click on the database name in the sidebar. You'll be able to see a [Users](/data-source-management/connect-data-source-users-to-select-star.md) tab and a Recent Queries tab.

![](https://3470314135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgAiVthA_yg9UXKuhyY%2Fuploads%2Fgit-blob-821199ae6a87ad4c1555eec6681e0d7e2da769b5%2FScreen%20Shot%202021-08-13%20at%201.51.20%20PM.png?alt=media\&token=29f94358-c0be-4709-a0a5-1927d92d1e8e)

The **Recent Queries** tab will show any query run on any schema or table which has been loaded into Select Star. It will not show queries for tables or schemas that have not been loaded into Select Star or that have been [removed](/data-source-management/manage-data-sources.md#deleting-tables-and-reports) from Select Star.

You can click on these queries and get more detailed information the same way you would from a database table page.

![](https://3470314135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgAiVthA_yg9UXKuhyY%2Fuploads%2Fgit-blob-d2ec1ad3808189941d7e953de0c491ec62834f2e%2FScreen%20Shot%202021-08-13%20at%201.58.09%20PM.png?alt=media\&token=bf6a08f1-229f-44be-a38a-fd722b69b7c5)

Clicking on a table in the right sidebar in the query details page will take you to that table page.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.selectstar.com/data-source-management/recent-queries.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
