You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P1] [doc-drift] FR-3.1.7 row count — no exact or estimated count #402
[P1] [doc-drift] FR-3.1.7 row count — only truncated-flag shown, no exact/estimated count
Context
DESIGN_REQUIREMENTS FR-3.1.7: "Show total row count; for large result sets, show estimated count with option to get exact count".
Problem
Per docs/audits/results.md F9.
The implementation shows activeResult.rows.length plus a Results truncated to N rows warning. total_rows_available exists on the Rust struct but is never populated. For SELECT * FROM huge_table LIMIT 100, the user can't tell whether they have 100 of 1,000 or 100 of 10,000,000.
SELECT * FROM users LIMIT 100 against 50K-row table shows "Showing 100 of approximately 50,000 rows. Get exact count"; clicking shows "Showing 100 of 50,247 rows".
Proposed fix
Scope M. When row-limit triggers, do a second SELECT COUNT(*) FROM (sub) query (2s timeout) and populate total_rows_available; render in the truncation banner with a "Get exact count" button.
Acceptance
"Showing 100 of approximately 50,000" → click button → "Showing 100 of 50,247".
Activity
feat(grid): say how many rows there are, not just that some are missing
feat(grid): say how many rows there are, not just that some are missi…