History
The "History" panel lists the statements executed in this session, whichever document they were executed from, with what each of them cost. It is one panel for the whole window:

The history outlives the session. It is kept per user in sqlhistory.json in %USERPROFILE%\Invantive\Prd\Invantive Query Tool and is read again at the next start, up to the 2,500 most recently executed statements.
From release 27.0 onwards the list follows every change of the history by itself. A statement which starts or finishes, and a statement which is removed, show within a quarter of a second while the panel is shown. A panel which is hidden behind another one is brought up to date the moment its tab is shown. The row at the top stays where it is, unless the list is scrolled to the top, where a new statement appears.
Columns
Every row is one statement, and a statement executed again keeps its row and counts up:
- "Clock Time", "CPU Time", "I/O Time" and "Sleep Time": what the last execution cost, in milliseconds. Sleep time is time spent waiting on a platform which asked to be called back later, such as a rate limit.
- "Rows Affected": the number of rows the last execution returned or changed.
- "I/O Calls" and "Partitions": the number of calls to the platform and the number of partitions addressed.
- "Execution Start (UTC)" and "First Time Started (UTC)": when the last and the first execution began.
- "#Executions" and the four "Total" columns: how often the statement was executed and what it cost over all executions together.
- "Successful" and "In Progress": whether the last execution completed without an error, and whether it is still running.
- "Name": the name given to the statement, see below.
- "SQL Text": the statement itself, shown on one line.
Actions
The toolbar carries "Export", which writes the history to a file in the formats of Invantive Script. From release 27.0 onwards it also carries "Actions", which offers the three choices of the context menu below for the selected statements, so that they can be reached without a right click.
The context menu of a row holds:
- "Copy query": place the statement on the clipboard.
- "Add to Named SQLs": give the statement a name, which is then shown in the "Name" column. A name is unique within the history: giving a name which another statement already carries moves it.
- "Remove from History": take the selected statements out of the history, with their counts and times. Available from release 27.0. Several statements are removed at once by selecting their rows first; a right click on a row outside the selection removes that row alone. A name given to a statement goes with it. The history file is written at once, so the statements do not return at the next start. A statement which is still running can be removed as well; it returns as a new row once it completes. The choice is disabled while no row is highlighted, and its tool tip says so.
Searching
From release 27.0 onwards the toolbar carries a search field which leaves only the statements whose text holds the text searched for:

The statement is searched as it was written, line breaks and all, and upper and lower case are treated alike. The button behind the field empties it, as does the Escape key. See Searching in a Panel for the search fields of the other panels.
