From 6a2d43f32d3e7e9f865c2bfb19992fa39d8b1474 Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Fri, 13 Nov 2026 02:06:27 +0700 Subject: [PATCH] docs(windows): count threshold and results kept per run settings --- windows/browsing.mdx | 10 ++++++++++ windows/data-grid.mdx | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/windows/browsing.mdx b/windows/browsing.mdx index fcf0d35..855e23e 100644 --- a/windows/browsing.mdx +++ b/windows/browsing.mdx @@ -72,6 +72,16 @@ Which objects show their source depends on the database: | SQLite | Triggers | | ClickHouse | Functions | +## Keep fewer results from a script + +A script whose statements return rows lists each result in the picker above the grid. To keep only the newest, set **Settings > Queries > Results kept per run**. + +| Setting | Default | Choices | +|---|---|---| +| Results kept per run | No limit | No limit, 10, 20, 50, 100, 200, 500, 1,000 | + +Earlier results are dropped as the script runs, and the status line says how many: `Rows: 1 · 12 ms · 990 earlier results were dropped.` A statement that returns no rows never counts toward the limit. A change applies from the next run. + ## Export results Choose **File > Export results** or press `Ctrl+Shift+E`. diff --git a/windows/data-grid.mdx b/windows/data-grid.mdx index 301c24e..d778714 100644 --- a/windows/data-grid.mdx +++ b/windows/data-grid.mdx @@ -11,6 +11,16 @@ A table opened from the object tree shows one page of rows, 1,000 by default. Ed Artist table with the first name underlined on a yellow fill and row 25 struck through on red +## Count a large table + +A table counts its rows when it opens, so **Last page** and **Go to page** know where the end is. A table the database estimates at more rows than **Settings > Pagination > Count rows if estimate less than** skips that count: the status reads `1-1,000 of about 2,000,000 rows`, and **Count rows** in the toolbar counts it on request. + +| Setting | Default | Choices | +|---|---|---| +| Count rows if estimate less than | 100,000 | 1,000; 10,000; 100,000; 1,000,000; Always count | + +A table whose database keeps no estimate is always counted. + ## Edit rows Editing works in a table tab on a table with a primary key, on a connection whose Safe Mode is not Read only. A saved row's key, and every column the server fills, stay as they are.