Skip to content

perf(grid): table open, save and query reads left from #4458 #4464

Backlog

Description

@datlechin

Follow-up to #4458 (perf audit, table-open-save lane). Items left out of that PR:

  • TOS-F, stopping a capped PostgreSQL read at the source: cut after review. A capped read with parameters, and Share Result's capped read, now run to their end on the wire and decode only cap + 1 rows. Stopping them at the cap takes a cancel, which rolls back what the statement writes through a function, a view or RETURNING; a safe stop needs the server's read-only mode or a savepoint cursor. Plan: a parameterized read's bytes_down equal to the plain read's.
  • The editor's capped PostgreSQL text read (executeBoundedQuery) cancels at the cap outside a transaction, so a SELECT whose function or view writes loses those writes while its rows come back. Older than this lane; the same read-only condition would fix it.
  • MySQL bulk and per-table foreign key reads are compared by construction only (one merge); the PostgreSQL and SQLite parity tests are in the PR.
  • The Fetch All prompt has no test seam; its text is a constant now.
  • TOS-C, keeping an exact total after a save of updates only: cut after review. A count can still change without a trigger the app lists: SQLite's ON CONFLICT REPLACE, a PostgreSQL rule, a row-level security policy, a Cassandra row with no row marker, and a trigger list kept from a refresh whose trigger read failed. It needs a per-kind freshness mark in SchemaService, a rules read and a curated per-engine capability. Plan: edit_save on a table under the count threshold, one capped count fewer. The PR keeps the large-total part: a total at or past the threshold stays as an estimate.
  • From the plan, not in any PR: MariaDB CHECK value pickers from the clauses its driver already reads (feature); the first Run on a restored tab with parameters opens the panel and runs nothing; Refresh blanks a large table's total after a 100,001-row capped count; iOS ColumnInfo(from:) drops allowedValues for every plugin-backed engine.
  • The catalog keeps "This will fetch approximately %@ more rows..." until Xcode's next sync marks it stale.
  • MySQL open_table_second, open_table_nopk and editor_commit counts were misattributed in both builds under load 25 to 250; measure them again on a quiet Mac.

Activity

  1. added
    enhancement
    platform-macos
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions