Skip to content

perf(results): charts and groupings parse and aggregate all rows on the UI thread on every rebuild #1170

Description

@ZhuchkaTriplesix

Problem

Results can hold up to 100 000 rows (sql_result_max_rows, default 5 000). Charts and Groupings process them synchronously on the UI thread:

  • ChartData.numericColumns parses every cell of every column with double.tryParse when Charts opens and on every new result (quick_chart_view.dart: _recompute).
  • build() calls ChartData.build (parse all rows again) on every rebuild, no memo; SVG export parses once more.
  • DataGridGroupingsView calls GridGroupingsEngine.buildGroups over all rows synchronously on every option click (column, aggregate, sort).

Scope

Acceptance

  • Switching to Charts / changing a grouping option on 100 000 rows keeps UI frames within budget (bench scenario).
  • Unit tests for the memo key and for LTTB.

Activity

  1. added
    performanceTheme parser epic label: performance
    data-gridInteractive data grid, cell editor, filtering, groupings
    P2Medium priority / Parity & Refactoring
    on Oct 8, 2026
  2. added a commit that references this issue on Oct 9, 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

    P2Medium priority / Parity & Refactoringdata-gridInteractive data grid, cell editor, filtering, groupingsperformanceTheme parser epic label: performance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions