#Data Grid and Result Exploration
The Result Panel is a data exploration workspace, not only a table widget. It virtualizes visible rows, preserves multiple result sets, and makes the scope of a filter or aggregate visible before it runs.
#Core workflow
- Run a query or batch and select a result-set tab.
- Use column sorting, a column filter, or global search. The grid virtualizes the rendered window; it does not imply that the whole database has been fetched.
- Open the column profile to inspect distinct values, null counts, distributions, and summary statistics.
- Group or pivot when the result shape supports it, then use charts or time views to inspect patterns.
- Open Row View for side-by-side rows or Value Viewer for a long cell. Row View uses a compact layout; hover a column name to see its full name and data type.
- Pin important result sets and let grid state (column order, filters, sorting, visibility, and pinning) persist for the file.
#Column filters and grouped tree rows
The result grid uses shared UI components. Click the funnel icon in a column header to open the Excel-like filter menu. It can search the visible values, select or invert distinct values, use text/numeric comparison operators, and match blank or non-blank values. Click Apply to keep the filter; Clear filter removes it. The older inline text fields are retained only for hosts that do not provide the rich filter menu.
Use Group by column in a header or the context menu to open the grouping surface and start grouping. Click a column header label to sort; the header's group action also starts grouping. The toolbar sort and group shortcuts were removed because they duplicated those controls. Drag additional columns into the grouping surface to create nested groups; the chip order is the grouping priority. Each group is rendered as a tree row with an expand/ collapse chevron, indentation, row count, and preserved row selection/copy coordinates. Removing the last grouping returns the flat result grid.
Open Analyze → Pivot… (or the Pivot toolbar button) to choose a row column, a pivot column, a numeric value column, and the aggregation. The dialog states which input becomes the first column, which becomes the header row, and where the aggregated value is placed. The pivot becomes the active result layout: it replaces the table until you close it, respects the active filters, and sorts the matrix by the row and pivot dimensions rather than by the aggregate value. If the server grouping cap is reached, the summary marks the result as partial instead of silently dropping cells.
Drag a cell or row selection beyond the top or bottom edge of the result viewport to keep extending it while the grid scrolls. Header widths include the type badge and the drag, pin, filter, and grouping controls. A manually saved width is still respected, but it cannot be reduced below the readable header minimum; use horizontal scrolling for a wide result.
Open the Columns sidebar (the panel icon in the result toolbar) to manage result columns. Its Find column field filters the list; press Enter or select a name to scroll the grid horizontally to that column and briefly highlight its header. Selecting a hidden column also makes it visible again. Drag a column row onto another row to reorder columns; the order is stored in the result view. Dropping a row on Drag a column here groups by that column. The results toolbar does not duplicate the column list or its search field.
In the desktop Result Panel, open More → Responsive collapsed columns to move columns that do not fit into expandable row details. Use the chevron in a row number cell to inspect those values. The option is off by default and is remembered for that result set. Grouping temporarily suspends the layout; the setting resumes when the grid returns to flat rows.
#Inline editing
Inline editing is available when the result comes from a single editable table. The shared Result Panel shows Edit data above the grid. Select it, then double-click a typed cell to open its editor:
- Enter commits; Escape cancels. A multi-line JSON/text editor commits with Ctrl+Enter (Cmd+Enter on macOS).
- Set NULL stores a database
NULL; the same button restores the previous value before committing. - Values are validated against the column type. An invalid value keeps the editor open and shows the reason instead of sending a malformed statement.
Pending changes are previewed in the grid. Save sends the reviewed
UPDATE statements to the host, which shows the confirmation dialog before
executing them. Discard drops the pending session. Editing is disabled for
disk-backed results and for queries that do not select a single table; the
reason appears next to the disabled button.
#Logs and selection statistics
The Logs result tab keeps the execution log for the source. Use Clear Logs on that tab to clear it; the tab does not expose table editing or analysis actions.
Selecting one or more cells reports the selection size, count, distinct count, and numeric sum/min/max to the VS Code status bar. Ctrl+click (Cmd+click on macOS) toggles individual cells without clearing the current selection, so you can summarize or copy non-adjacent cells. Copy and export use the bounding rectangle of the selection, matching Excel and the legacy grid. Grouped views do not report cell statistics because group headers are not data cells.
Double-click a data cell outside edit mode to insert its value into the active
SQL editor. The value is formatted as a SQL literal: numbers stay unquoted,
text and dates are quoted, and NULL is inserted as NULL. In edit mode the
double-click opens the cell editor instead.
Row View opens a side panel that compares up to ten selected rows vertically: every column becomes a section, all selected values appear together, and columns whose values differ are highlighted. Grouped results show a placeholder until grouping is cleared. Drag the divider to resize the column-name column (or focus it and use the arrow keys; double-click to fit the longest name). The export menu copies the comparison as an image or Markdown, or downloads it as XLSB.
#Three filtering modes
| Mode | Data boundary | Executes a new query? |
|---|---|---|
| Loaded rows | Rows already loaded into the in-memory grid | No |
| Disk-backed | The entire dataset fetched into the local SQLite spill | No |
| All rows + LIMIT | The logical result before its final LIMIT, then the original limit is reapplied |
Yes |
#All rows + LIMIT: the important distinction
For a query such as:
SELECT customer_id, order_date, total_amount
FROM SALES.ORDERS
ORDER BY order_date DESC
LIMIT 1000;the database-scope filter can use this execution shape:
SELECT ... ORDER BY ... LIMIT 1000
│
├─ remove the final LIMIT
├─ use the unlimited query as a subquery
├─ apply the filter or aggregate to the logical result
└─ apply LIMIT 1000 againUse All rows + LIMIT when you need to filter the logical result before the display limit. It requires a final LIMIT, stable and unique column names, and a query that can safely be wrapped as a subquery. Every Apply can run the database query again; a normal timeout applies, with Retry allowing the longer retry window. It operates on the logical result, not on the whole database without a boundary.
It is unavailable for a result that is already disk-backed only. Use disk-backed filtering for the complete fetched dataset instead.
#Loaded rows
Loaded-row filtering is immediate and local. It is the right choice for a 500-row result or a quick inspection of what has arrived. It cannot find rows that were never fetched because of rowLimit, cancellation, or the original database LIMIT.
#Disk-backed
Disk-backed filtering sees every row fetched into the SQLite spill, without a second database query. It can sort, group, calculate distinct values, and aggregate over that fetched dataset. It still cannot see rows the server did not send. Inline editing is disabled for disk-backed results.
#Aggregations and profiles
Visible-scope aggregation uses the currently filtered grid/spill. Database-scope aggregation uses the unlimited subquery used by All rows + LIMIT. Available operations include SUM, AVG, MIN, MAX, COUNT, COUNT DISTINCT, STDDEV, and MEDIAN where the selected database supports the operation and the column type is suitable. Pin aggregations to compare columns while changing filters.
#Charts and Diff
The Analyze menu in the layout switcher also exposes Charts, Mini Charts, and Diff.
Charts renders the active 2x2-or-larger cell selection, or the whole filtered result when there is no usable selection. Pick a chart type (grouped, stacked, or 100% stacked columns; grouped or stacked bars; line; stacked area; pie; scatter), choose the category and numeric series, and set the title and legend in the sidebar. Copy as Image writes a PNG to the clipboard; Download PNG saves one. Chart data follows the grid's filters and sort order and skips hidden columns.
Mini Charts shows one sparkline card per numeric column, sampled from the first 120 values, with min, average, maximum, and the latest sampled value.
Diff compares the active result with another result set from the same source. The baseline picker excludes logs and failed results. The summary counts added, removed, and changed rows; changed cells show the baseline value struck through above the new value. The table shows at most 500 differences, and the summary still counts every difference.
#Analytical
The Analytical view groups the rows by up to three columns and flags groups whose values, nulls, dates or category mix differ from the rest of the result. Open it from Analyze → Analytical in the layout switcher; choose one to three Group by columns in the view header. See Analytical View for the detection modes, the rules and their limits.
#Explore
Open Explore to inspect column profiles, distributions, quality alerts, pivots, and charts. Profiles examine the first 50,000 loaded rows, or all loaded rows when fewer are available. This is a first-row sample, not a random sample. The scope banner shows examined, loaded, and matching sample row counts; these counts do not describe rows that have not been fetched.
Add filter supports category inclusion/exclusion, multiple values, NULL, empty strings, dates, and numeric ranges. Changes are drafts until Apply; Cancel discards them. Undo, Redo, and individual filter chips let you revise the analysis. Explore filters are independent of the main grid's filters. Value search is local until you explicitly select Search database, which can find values outside the sample and returns up to 100 values per search.
Under Charts, choose Category ranking for Top/Bottom N without a date
column, or Time series for a date-based chart. Rankings support Count rows,
Sum, Average, Minimum, Maximum, and Count distinct. Show share uses the full
filtered population, including categories outside Top N. It is available for
Count rows and non-negative Sum category totals with a positive total.
Include Other combines remaining categories for Count rows and Sum only.
A real category named Other remains separate from this synthetic group.
Database computations require Run. Changing filters or chart settings marks the previous computation Out of date; it does not automatically query the database. Original user-authored LIMIT, TOP, and FETCH clauses are preserved. Database computations read current database data, which may have changed since the original result was fetched. Pivots and time series display up to 5,000 rows.
Select a category, histogram range, or current time-series point to access Filter to selection, Show rows, and Open SQL. The selection uses the filters of the displayed computation, including when it is out of date. Chart data and distribution ranges provide equivalent keyboard actions. The time series selection tool can select an interval without changing normal zoom.
Show rows opens a separate preview inside Explore. Sample previews are local; database previews require Load rows. Previews show up to 1,000 rows, 100 per page, and page changes do not execute more queries. Open SQL opens a bounded details query without executing it. For results without reusable SQL, local sample exploration remains available. Access database exploration and SQL Server sources beginning with a CTE are currently unavailable.
Filters and chart settings belong to a stable result identity and survive navigation through Logs and other results. New executions do not inherit an unrelated result's filters. Unsupported database operations report their limitation rather than silently substituting sample statistics.
#Multiple result sets and partial results
Batch statements appear as separate tabs. Pinning protects a result from normal pruning; the current defaults are 50 data result sets per SQL file and 10 manually pinned sets. Empty, cancelled, partial, and error result sets keep their state and message so the user can distinguish “zero rows” from “query did not complete.”
#Copy and export
Ctrl+C and the toolbar Copy write several representations in one clipboard operation: an HTML table plus a plain-text form controlled by justybase.results.copyFormat (Markdown by default, or tabbed, CSV, or semicolon-delimited CSV). Rich targets such as Excel, Word, and browsers paste the HTML table, while plain-text editors receive the configured text. JSON and SQL INSERT copies stay plain-text so a rich editor cannot substitute the table.
Copy in the grid context menu copies the selection as tab-separated values without headers. Copy as ▸ holds the other formats: tabbed with headers, Markdown table, CSV, JSON (an array of row objects), SQL INSERT statements, SQL IN list, and HTML table. SQL IN list turns the selected cells into a predicate list to paste after a column in a WHERE clause, for example IN (1001, 1002, 'O''Brien'). Numbers are written without quotes and text is quoted with ' doubled. NULLs and duplicate values are left out. Lists longer than ten values are wrapped ten values per line. Export Selection ▸ and Export All Visible ▸ write Excel, CSV, or JSON files.
The toolbar Export menu first asks for a format. Excel follows justybase.results.defaultExcelFormat (default XLSB — smaller and faster; set it to xlsx for wider compatibility, for example with LibreOffice or Google Sheets). The other Excel flavour stays available under More…, together with XML, Parquet, CSV.GZ, CSV.ZST and SAS XPORT. The second choice is the row scope (Loaded rows, or ALL rows, which re-runs the SQL without its LIMIT). Then choose where the result goes:
| Action | Result |
|---|---|
| Save as… | Asks for a location and saves the file |
| Export & Open | Saves to the OS temp folder (%TEMP%\justybase-exports on Windows) and opens the file in its default application |
| Export & Copy file | Saves to the temp folder and puts the file itself on the clipboard, ready to paste into a mail, chat, or folder |
| Copy content | Text formats only (CSV, JSON, Markdown, SQL INSERT, XML): puts the exported text on the clipboard without creating a file |
The export-menu defaults are configurable: justybase.results.defaultExcelFormat picks the Excel flavour (xlsb by default, or xlsx) used by Export & Open and the quick Excel actions.
The menu opens with the same defaults every time; it never silently repeats an earlier export choice.
Export can use raw values or display-formatted values, controlled by justybase.results.useFormattedValuesForExport. Formatting controls include integer/decimal grouping, group and decimal separators, scale, trailing zeros, and rounding mode. A display value such as 1 234,50 is not the same as the raw numeric value 1234.5; choose deliberately before handing data to another system.
The grid can export query results to XLSB, XLSX, CSV, CSV.GZ, CSV.ZST, JSON, XML, SQL INSERT, Markdown, and Parquet.
#Large-data limits
Virtualization reduces DOM cost, streaming reduces time-to-first-row, and SQLite spill reduces webview memory pressure. Neither changes the database workload. Use a predicate, a stable order, and a bounded limit before enabling database-scope exploration. Inspect Performance and Reliability for thresholds and recovery behavior. Body rows (data and grouping) share a fixed height, which keeps the virtual window and restored scroll anchors exact.
Fetched rows are capped by justybase.query.rowLimit (default 200,000). When the cap is reached, a warning appears above the grid with the fetched and configured row counts. Close it with the ✕ button to keep working — the warning stays dismissed for that result set and only returns for a new execution or after you change the result. The adjoining row counter keeps a small — limit reached marker as a reminder. A result that spills to SQLite or streams in chunks shows the warning only once the host reports the limit, so it never flickers while rows are still arriving.
For reproducible desktop comparisons, see the Data Grid performance benchmark playbook. It distinguishes inline, worker, disk-backed, and database-scope work instead of presenting them as one search time.