Skip to content

perf(database): integrate CompactResultDataset into SQL drivers (#1355) - #1464

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1355-compact-result-dataset
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1355-compact-result-dataset

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1355

Summary

  • Integrated columnar CompactResultDataset into SQLite, PostgreSQL, and MySQL execution delegates.
  • Added dataset field and SqlExecutionResult.fromDataset factory to SqlExecutionResult.
  • SqlExecutionResult.rows defaults to dataset.asLazyRowList(), keeping 100% backwards compatibility with virtual grid rendering and callers while eliminating upfront conversion of entire result sets into heap-allocated List<List<String>> matrix.
  • Added cellFormatter support to CompactResultDataset.fromRawRows to preserve driver-specific type representations (bytea/blobs, timestamps, boolean tinyints).
  • Added comprehensive unit tests for cellFormatter and SqlExecutionResult.fromDataset.

…iminate 3x memory copies and string allocations (#1355)
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 0f75f95 into dev Oct 11, 2026
13 checks passed
@github-actions github-actions Bot added performance Theme parser epic label: performance core Core library logic and services backend Backend database driver execution and queries P2 Medium priority / Parity & Refactoring labels Oct 11, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1355-compact-result-dataset branch October 11, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend database driver execution and queries core Core library logic and services P2 Medium priority / Parity & Refactoring performance Theme parser epic label: performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant