> 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

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.**

![](/files/WDzYRlbf6RS6MliLAZzZ)

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.

![](/files/-Mh0HBsPt9xJZ0J6CSrM)

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.

![](/files/-Mh0IuDsYTOE6iMOikub)

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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
