Conversation
Web Console deploy preview
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Query Activity drawer
A new Query Activity button in the right sidebar, directly below Table Details, opens a drawer that lists the queries currently running on the server. It is built on the server's
query_activity()function, which now reports live memory usage per query.What the drawer shows
Header. The title carries a badge with the number of running queries.
Summary tiles.
Search. The search box filters the list as you type. It matches the query text, the query id, and the username, case-insensitively. Pressing Escape clears the box. Pressing Escape on an empty box closes the drawer.
Sort. A dropdown offers eight orders: Duration, Memory used, Start time, and Query ID, each ascending or descending. The default is Duration descending, so the longest running query is on top. Queries with no memory data always sort last under Memory used.
Auto refresh. The refresh toggle polls the server once a second while it is on. Turning it off freezes the list. The choice is remembered across sessions. Toggling it either way fetches a fresh list immediately.
What a query row shows
used / limit. Background work showsN/A.Cancelling a query
Cancel asks for confirmation, then sends a cancel request to the server. The row switches to Cancelled and stays until the server drops the query, which happens at the query's next safe point. Cancel is not offered for WAL rows, because the server refuses to cancel them, nor for rows that are already cancelled or finished. On Enterprise, cancelling another user's query requires the SQL ENGINE ADMIN permission; the server's error is shown as a notification.
Memory warnings
Only memory produces a warning or error tone, and only for queries that run under a memory limit. The tone reflects how much of that limit the query holds. Queries without a limit, and background work that reports no memory, are never coloured. Duration never colours a row, since what counts as long depends on the workload.
Cancelled queries are never graded.
How a query disappears
The server only lists queries while they run. It does not report an outcome. When a poll no longer returns a query, the row switches to Finished with the hover text "The query left the registry. It finished, failed, or timed out." The row stays for five seconds, then fades out.
While your mouse is over the row, or keyboard focus is inside it, the row stays as long as you like. When you leave it, a fresh five seconds starts. A cancelled query that leaves the server lingers the same way but keeps its Cancelled state.
Other things to know
Changes outside the drawer
Read-only SQL blocks elsewhere in the console, in the AI chat, the table details DDL, and the shared link confirmation, now render as static highlighted text instead of an embedded editor. They look the same, load faster, and their text can be selected with the mouse. Their copy button now appears on hover, like the open-in-editor action already did.
🤖 Generated with Claude Code