Loading the documentation…
The Queries view lists the SQL queries running right now, with their user, elapsed time, memory and progress. Use it to find the query that is slowing everything down, then stop it.
The view is part of ClickHouse activity, and without View Active Queries it is not in the toggle. It holds a ClickHouse table and, hidden until you unlock it, a PostgreSQL table.
Each table lists one row per query running at the moment it loads.
| Table | Columns |
|---|---|
| ClickHouse | Query ID, User, Database, Query Kind, IP Address, Port, Initial Port, Elapsed Time, Memory Usage, Progress, Query |
| PostgreSQL | PID, Blocking PID, DB Username, Application Name, IP Address, Query Start Time, Status Change Time, Status, Query, Wait Event |
0. 00 B.Stopping needs Stop Active Queries. Without it, the stop icon is hidden at the end of the rows.
Stopping takes a moment, so the query can stay in the list until you refresh.
When the query you stop belongs to a load, a history run or a queued schema change, DataMind treats it as a deliberate stop of that step:
Killed from Running Queries by <email> at <time>, and the steps that depend on it are skipped.A query stopped outside DataMind is handled the same way, and its note reads Cancelled in ClickHouse (KILL QUERY outside DataMind) at <time>. To stop a whole step together with all of its statements, use Abort holder & release in Locks instead.
If you can use the Editor, the details panel shows Open in Editor; it opens the query's SQL in a console. The console is named Running Query PID {pid} for a PostgreSQL query and Running Query {first 8 characters} for a ClickHouse query, taken from the query id. If the query runs from one of your open consoles, the Editor focuses that console instead. See Query Management for how consoles work.
The PostgreSQL table is hidden by default. To unlock it:
Stopping takes a moment, and the table does not update on a timer. Click Refresh data after a short wait.
Stopping needs Stop Active Queries. Without it, the icon is hidden. Ask an administrator to add it to your role; see the Permission reference.
The PostgreSQL table is hidden until you unlock it. Select Queries and click it ten times in a row; from the fifth click a countdown shows the taps left. The unlock stays in this browser.
Click Query history in the toolbar; it opens the query log in Query Management. The button appears when you hold View Query Management.
Click the view button in the Query cell of the row. The preview shows the whole statement, and its copy button copies it.
Yes, when you can use the Editor. Click the row to open its details, then use Open in Editor; the console is named Running Query PID {pid} for PostgreSQL and Running Query {first 8 characters} for ClickHouse.
The Query ID column is hidden by default. Use View settings in the table toolbar to show it. Your column layout is kept in this browser.
The table loads up to 10,000 rows when it opens. Search, sorting and column filters then run in your browser over the loaded rows.
The step ends Aborted and its run ends Failed, so the workflow's failure alerts go out and the run is not retried automatically. The step's locks are released once ClickHouse shows nothing of it. See Stop a query that belongs to a load.
No. Click the refresh button (tooltip Refresh data) for the latest list.